📅  最后修改于: 2022-03-11 14:45:02.208000             🧑  作者: Mango
func StringWithCharset(length int, charset string) string {
b := make([]byte, length)
for i := range b {
b[i] = charset[seededRand.Intn(len(charset))]
}
return string(b)
}