From d6f3ca94c3abf71f113dc8b7614318107736b980 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Tue, 29 Aug 2023 19:02:10 +0200 Subject: update imports --- js.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'js.go') 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 { -- cgit v1.2.3