From 7c096b9c2962647b3517723b6e12970c6ba3f0a7 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Mon, 27 May 2024 16:28:05 +0200 Subject: [PATCH] backoff: Supress `gosec G404` error --- backoff/backoff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backoff/backoff.go b/backoff/backoff.go index e79a1ee7..f396898a 100644 --- a/backoff/backoff.go +++ b/backoff/backoff.go @@ -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. }