Skip to content

Commit

Permalink
Chore(CI): fixing linting in sketch.go (#310)
Browse files Browse the repository at this point in the history
## Problem

Lint tests were failing in sketch.go.

## Solution

We add nolint directive.
  • Loading branch information
joshua-goldstein committed Oct 10, 2022
1 parent bff753b commit 95a8d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func newCmSketch(numCounters int64) *cmSketch {
numCounters = next2Power(numCounters)
sketch := &cmSketch{mask: uint64(numCounters - 1)}
// Initialize rows of counters and seeds.
source := rand.New(rand.NewSource(time.Now().UnixNano()))
// Cryptographic precision not needed
source := rand.New(rand.NewSource(time.Now().UnixNano())) //nolint:gosec
for i := 0; i < cmDepth; i++ {
sketch.seed[i] = source.Uint64()
sketch.rows[i] = newCmRow(numCounters)
Expand Down

0 comments on commit 95a8d5a

Please sign in to comment.