We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff753b commit 95a8d5aCopy full SHA for 95a8d5a
sketch.go
@@ -53,7 +53,8 @@ func newCmSketch(numCounters int64) *cmSketch {
53
numCounters = next2Power(numCounters)
54
sketch := &cmSketch{mask: uint64(numCounters - 1)}
55
// Initialize rows of counters and seeds.
56
- source := rand.New(rand.NewSource(time.Now().UnixNano()))
+ // Cryptographic precision not needed
57
+ source := rand.New(rand.NewSource(time.Now().UnixNano())) //nolint:gosec
58
for i := 0; i < cmDepth; i++ {
59
sketch.seed[i] = source.Uint64()
60
sketch.rows[i] = newCmRow(numCounters)
0 commit comments