This commit is contained in:
tycho garen
2022-06-16 09:44:30 -04:00
parent 8c854cc583
commit dc1157df14
+1
View File
@@ -985,6 +985,7 @@ RETRY:
// lower the priority of the
// peers is.
// nolint:gosec // G404: Use of weak random number generator
if len(ranked) <= int(limit) || rand.Intn(idx+1*2) <= idx {
seenAddresses[addressInfo.Address] = struct{}{}
addresses = append(addresses, addressInfo.Address)