all: stop using math/rand.Seed

Fixes #16428.

Signed-off-by: Jes Cok <xigua67damn@gmail.com>
This commit is contained in:
Jes Cok
2023-08-20 16:25:25 +08:00
parent cfbb60d8af
commit 52748f60f3
7 changed files with 0 additions and 14 deletions

View File

@ -806,7 +806,6 @@ func computeLatency(lat, rv time.Duration) time.Duration {
rv = lat / 10
}
now := time.Now()
mrand.Seed(int64(now.Nanosecond()))
sign := 1
if now.Second()%2 == 0 {
sign = -1