[quotedb] Lint: Justify usage of math/random

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-10-22 01:16:00 +02:00
parent 0e6432c32c
commit 38c31200fd
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

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