mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore(lint): enable builtinShadow rule from go-critic (#23430)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user