Skip to content

Commit 95a8d5a

Browse files
Chore(CI): fixing linting in sketch.go (#310)
## Problem Lint tests were failing in sketch.go. ## Solution We add nolint directive.
1 parent bff753b commit 95a8d5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sketch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ func newCmSketch(numCounters int64) *cmSketch {
5353
numCounters = next2Power(numCounters)
5454
sketch := &cmSketch{mask: uint64(numCounters - 1)}
5555
// Initialize rows of counters and seeds.
56-
source := rand.New(rand.NewSource(time.Now().UnixNano()))
56+
// Cryptographic precision not needed
57+
source := rand.New(rand.NewSource(time.Now().UnixNano())) //nolint:gosec
5758
for i := 0; i < cmDepth; i++ {
5859
sketch.seed[i] = source.Uint64()
5960
sketch.rows[i] = newCmRow(numCounters)

0 commit comments

Comments
 (0)