go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.37k stars 2.13k forks source link

test: use math/rand/v2 instead of deprecated math/rand.Seed #3713

Closed alexandear closed 2 months ago

alexandear commented 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.

aarzilli commented 2 months ago

Too soon, maybe in a couple of years :)