delete rand.Seed() deprecated in Go 1.20 and no-op as of Go 1.24

This commit is contained in:
Vasyl Tretiakov 2025-10-25 13:02:09 +03:00
parent 26a61db092
commit 6e5ced80bb

View File

@ -43,7 +43,6 @@ func newBackoff(ctx context.Context, sizeThreshold int, cleanupInterval time.Dur
info: make(map[peer.ID]*backoffHistory),
}
rand.Seed(time.Now().UnixNano()) // used for jitter
go b.cleanupLoop(ctx)
return b