mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
Lint: Disable requirement for crypto/rand for time randomizer
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ba63d5f8bd
commit
11cce25914
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ func init() {
|
||||||
|
|
||||||
totalDelay := r.Delay
|
totalDelay := r.Delay
|
||||||
if r.DelayJitter > 0 {
|
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)
|
time.Sleep(totalDelay)
|
||||||
|
|
Loading…
Reference in a new issue