mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
minor improve
This commit is contained in:
@@ -130,7 +130,7 @@ func RandPort(mustValid, isudp bool, depth int) (p int) {
|
||||
|
||||
//use a new seed each time called
|
||||
func RandPortStr_safe(mustValid, isudp bool) string {
|
||||
rand.Seed(time.Now().Unix())
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
return strconv.Itoa(RandPort(mustValid, isudp, 0))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user