chore(lint): enable builtinShadow rule from go-critic (#23430)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-06-16 23:20:57 +02:00
committed by GitHub
parent 0b8d018fdf
commit 54501c05a8
21 changed files with 157 additions and 161 deletions

View File

@@ -15,7 +15,7 @@ func GetRandomString() string {
return string(b)
}
func cryptoRandSecure(max int64) int64 {
nBig, _ := rand.Int(rand.Reader, big.NewInt(max))
func cryptoRandSecure(maximum int64) int64 {
nBig, _ := rand.Int(rand.Reader, big.NewInt(maximum))
return nBig.Int64()
}