Silence golanglint error
This commit is contained in:
parent
3c7c02f3e5
commit
5aff975993
2 changed files with 2 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ func (pd *Queue) Shuffle() {
|
|||
backupID = current.ID
|
||||
}
|
||||
|
||||
//nolint:gosec // playback shuffle order doesn't need cryptographic randomness
|
||||
rand.Shuffle(len(pd.Items), func(i, j int) { pd.Items[i], pd.Items[j] = pd.Items[j], pd.Items[i] })
|
||||
|
||||
var err error
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ var _ = Describe("database backups", func() {
|
|||
|
||||
timesShuffled = make([]time.Time, len(timesDecreasingChronologically))
|
||||
copy(timesShuffled, timesDecreasingChronologically)
|
||||
//nolint:gosec // test-only shuffle of backup times, no cryptographic requirement
|
||||
rand.Shuffle(len(timesShuffled), func(i, j int) {
|
||||
timesShuffled[i], timesShuffled[j] = timesShuffled[j], timesShuffled[i]
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue