From e9a9e4977a24f99434a3d78d7d10b74c1c9a1e20 Mon Sep 17 00:00:00 2001 From: R22627 Date: Fri, 29 Dec 2023 11:15:10 +0800 Subject: [PATCH] fix:fix the RandLowerAlphanumeric --- math/randstr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/randstr.go b/math/randstr.go index 579ca66..f64ca17 100644 --- a/math/randstr.go +++ b/math/randstr.go @@ -52,7 +52,7 @@ func RandAlphanumeric(l int) string { func RandLowerAlphanumeric(l int) string { s := make([]byte, l) for i := range s { - s[i] = alphanumeric[RandIntn(lowerAlphanumericLen)] + s[i] = lowerAlphanumeric[RandIntn(lowerAlphanumericLen)] } return string(s) }