Closed alexandear closed 2 months ago
This PR removes usages of rand.Seed in tests. This function is deprecated since Go 1.20. We can replace rand.Seed + rand.Intn by using just rand.IntN from the package math/rand/v2.
rand.Seed
rand.Seed + rand.Intn
rand.IntN
math/rand/v2
Too soon, maybe in a couple of years :)
This PR removes usages of
rand.Seed
in tests. This function is deprecated since Go 1.20. We can replacerand.Seed + rand.Intn
by using justrand.IntN
from the packagemath/rand/v2
.