mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-19 14:32:21 +00:00
fix lint
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user