package test import "math/rand" const alphanumeric = "abcdefghijklmnopqrstuvwxyz0123456789" func RandString(n int) string { b := make([]byte, n) for i := range b { b[i] = alphanumeric[rand.Intn(len(alphanumeric))] } return string(b) }