From 6d884aedbadcb8b32cf2064001519d798fc9fd76 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 11 Jun 2024 13:46:05 +0000 Subject: [PATCH] take it up with the stdlib you ^%@%@ linter --- peer/internal/uniform/rand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer/internal/uniform/rand.go b/peer/internal/uniform/rand.go index 4eacef1f3..21eb1cf48 100644 --- a/peer/internal/uniform/rand.go +++ b/peer/internal/uniform/rand.go @@ -95,7 +95,7 @@ func Uint32n(rand io.Reader, n uint32) uint32 { hi, lo1b := bits.Mul32(uint32(x>>32), n) lo1, c := bits.Add32(lo1a, lo1b, 0) hi += c - if lo1 == 0 && lo0 < uint32(n) { + if lo1 == 0 && lo0 < uint32(n) { //nolint: unconvert n64 := uint64(n) thresh := uint32(-n64 % n64) for lo1 == 0 && lo0 < thresh {