From 38c31200fdfbe97e8d99d0d246e421f667aab63a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 22 Oct 2021 01:16:00 +0200 Subject: [PATCH] [quotedb] Lint: Justify usage of math/random Signed-off-by: Knut Ahlers --- internal/actors/quotedb/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/actors/quotedb/actor.go b/internal/actors/quotedb/actor.go index ecb7438..eeccf67 100644 --- a/internal/actors/quotedb/actor.go +++ b/internal/actors/quotedb/actor.go @@ -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]) {