From e09ef9199fc50dea230746ce21efde77fe5d4aeb Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Sun, 1 Sep 2024 16:35:37 +0800 Subject: [PATCH] fix: remove rand seed --- hrp/pkg/uixt/ext.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hrp/pkg/uixt/ext.go b/hrp/pkg/uixt/ext.go index 3a7d7c67..5f1071fa 100644 --- a/hrp/pkg/uixt/ext.go +++ b/hrp/pkg/uixt/ext.go @@ -5,7 +5,6 @@ import ( "fmt" _ "image/gif" _ "image/png" - "math/rand" "mime" "mime/multipart" "net/http" @@ -179,10 +178,6 @@ func isPathExists(path string) bool { return true } -func init() { - rand.Seed(time.Now().UnixNano()) -} - func (dExt *DriverExt) FindUIRectInUIKit(search string, options ...ActionOption) (point PointF, err error) { // click on text, using OCR if !isPathExists(search) {