Skip to content

Commit 72dd539

Browse files
authored
refactor(math/rand): remove init function for rand.Seed (#3979)
Signed-off-by: yxxhero <aiopsclub@163.com>
1 parent 7acccb7 commit 72dd539

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/math/rand.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ import (
2222
"time"
2323
)
2424

25-
func init() {
26-
rand.Seed(time.Now().UnixNano())
27-
}
28-
2925
const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
3026
const (
3127
letterIdxBits = 6 // 6 bits to represent a letter index

0 commit comments

Comments
 (0)