Lint: Disable requirement for crypto/rand for time randomizer

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-12 20:53:45 +02:00
parent ba63d5f8bd
commit 11cce25914
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -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)