fix: remove rand seed

This commit is contained in:
lilong.129
2024-09-01 16:35:37 +08:00
parent 6f9946801d
commit e09ef9199f

View File

@@ -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) {