Skip to content

Commit

Permalink
backoff: Supress gosec G404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed May 27, 2024
1 parent c34ad81 commit 7c096b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ func jitter(n int64) int64 {
return 0
}

return n/2 + rand.Int63n(n/2)
return n/2 + rand.Int63n(n/2) // #nosec G404 -- Use of weak random number generator - we don't need crypto/rand here though.
}

0 comments on commit 7c096b9

Please sign in to comment.