mirror of
https://github.com/XIU2/CloudflareSpeedTest.git
synced 2026-03-02 11:57:05 +08:00
修复 IP 解析不够随机的问题
This commit is contained in:
@@ -22,8 +22,11 @@ var (
|
||||
IPFile = defaultInputFile
|
||||
)
|
||||
|
||||
func randIPEndWith(num byte) byte {
|
||||
func InitRandSeed() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
}
|
||||
|
||||
func randIPEndWith(num byte) byte {
|
||||
return byte(rand.Intn(int(num)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user