mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
188c5d4a7c
The linter falsely detects this as using "math/rand":
libnetwork/networkdb/cluster.go:721:14: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
val, err := rand.Int(rand.Reader, big.NewInt(int64(n)))
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit
|
||
---|---|---|
.. | ||
broadcast.go | ||
cluster.go | ||
delegate.go | ||
event_delegate.go | ||
message.go | ||
networkdb.go | ||
networkdb.pb.go | ||
networkdb.proto | ||
networkdb_test.go | ||
networkdbdiagnostic.go | ||
nodemgmt.go | ||
watch.go |