|
rand.Seed(time.Now().UnixNano()) |
|
} |
rand.Seed is deprecated: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator.deprecateddefault
slim-sprig/defaults.go
Lines 13 to 14 in 6e46e2e
rand.Seed is deprecated: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator.deprecateddefault