oops
This commit is contained in:
parent
419781988a
commit
028ed60293
3 changed files with 2 additions and 7 deletions
|
@ -5,7 +5,7 @@ import "math/rand"
|
|||
func GenerateAlnumString(length int) []byte {
|
||||
const CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
res := []byte{}
|
||||
for i := 0; i < length; i++ {
|
||||
for range length {
|
||||
res = append(res, CHARS[rand.Intn(len(CHARS))])
|
||||
}
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue