diff --git a/main.go b/main.go index 860166a..f0f0677 100644 --- a/main.go +++ b/main.go @@ -128,8 +128,8 @@ func errChk(err error) { } func randS(n int) string { - var alphaNum = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") - b := make([]rune, n) + const alphaNum = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + b := make([]byte, n) for i := range b { b[i] = alphaNum[rand.Intn(len(alphaNum))] }