package main
import (
"fmt"
"math/rand"
"time"
)
func randString(length int) string {
const charset = "abcdefghijklmnopqrstuvwxyz" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
rs := rand.New(
rand.NewSource(time.Now().UnixNano()))
b := make([]byte, length)
for i := range b {
b[i] = charset[rs.Intn(len(charset))]
}
return string(b)
}
func main() {
fmt.Printf("%s\n", randString(32))
}