summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
Diffstat (limited to 'js.go')
-rw-r--r--js.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/js.go b/js.go
index 1a2630c..5a20ed7 100644
--- a/js.go
+++ b/js.go
@@ -10,11 +10,9 @@ import (
"fmt"
"math/rand"
"strings"
- "time"
-
- "flyscrape/js"
"github.com/evanw/esbuild/pkg/api"
+ "github.com/philippta/flyscrape/js"
v8 "rogchap.com/v8go"
)
@@ -28,10 +26,6 @@ func (err TransformError) Error() string {
return fmt.Sprintf("%d:%d: %s", err.Line, err.Column, err.Text)
}
-func init() {
- rand.Seed(time.Now().UnixNano())
-}
-
func Compile(src string) (ScrapeOptions, ScrapeFunc, error) {
src, err := build(src)
if err != nil {