Skip to content

Commit f7fec59

Browse files
suppress sonarqube warning on non crypto rand
1 parent da3916c commit f7fec59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded/store/indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ func (idx *indexer) handleWriteStalling(err error) error {
501501
if err := idx.store.FlushIndexes(0, false); err != nil {
502502
return err
503503
}
504-
504+
// NOSONAR (rand is fine here)
505505
sleepTime := writeStallingSleepDurationMin + time.Duration(rand.Intn(int(writeStallingSleepDurationMax-writeStallingSleepDurationMin+1)))
506506
time.Sleep(sleepTime)
507507
return nil

0 commit comments

Comments
 (0)