From 5aff975993edea1498231dcf6fdb1ed347f81bf7 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Tue, 25 Aug 2026 04:49:54 -0800 Subject: [PATCH] Silence golanglint error --- core/playback/queue.go | 1 + db/backup_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/core/playback/queue.go b/core/playback/queue.go index d15eaad9..4b4444da 100644 --- a/core/playback/queue.go +++ b/core/playback/queue.go @@ -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 diff --git a/db/backup_test.go b/db/backup_test.go index 5e8f877e..e9936e55 100644 --- a/db/backup_test.go +++ b/db/backup_test.go @@ -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] })