修复随机数的问题

This commit is contained in:
Spedoske
2020-07-09 12:01:18 +08:00
parent 5c67f34e71
commit 51aaa16d79
2 changed files with 4 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ const failTime = 4
type CloudflareIPDataSet []CloudflareIPData
func initipEndWith() {
rand.Seed(time.Now().UnixNano())
ipEndWith = uint8(rand.Intn(254) + 1)
}