From 11cce25914345ada36b74950e51f168ba8100d99 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 12 May 2021 20:53:45 +0200 Subject: [PATCH] Lint: Disable requirement for crypto/rand for time randomizer Signed-off-by: Knut Ahlers --- action_delay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_delay.go b/action_delay.go index 970da70..d9fcb7e 100644 --- a/action_delay.go +++ b/action_delay.go @@ -15,7 +15,7 @@ func init() { totalDelay := r.Delay if r.DelayJitter > 0 { - totalDelay += time.Duration(rand.Int63n(int64(r.DelayJitter))) + totalDelay += time.Duration(rand.Int63n(int64(r.DelayJitter))) // #nosec: G404 // It's just time, no need for crypto/rand } time.Sleep(totalDelay)