This commit is contained in:
tycho garen
2022-06-16 12:22:44 -04:00
parent 01f9c20fb5
commit ef25104917
+1
View File
@@ -1010,6 +1010,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)