mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
[quotedb] Lint: Justify usage of math/random
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0e6432c32c
commit
38c31200fd
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ func (s *storage) GetQuote(channel string, quote int) (int, string) {
|
|||
defer s.lock.RUnlock()
|
||||
|
||||
if quote == 0 {
|
||||
quote = rand.Intn(len(s.ChannelQuotes[channel])) + 1
|
||||
quote = rand.Intn(len(s.ChannelQuotes[channel])) + 1 // #nosec G404 // no need for cryptographic safety
|
||||
}
|
||||
|
||||
if quote > len(s.ChannelQuotes[channel]) {
|
||||
|
|
Loading…
Reference in a new issue