(length int)
| 32 | ) |
| 33 | |
| 34 | func RandStr(length int) string { |
| 35 | str := "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 36 | bytes := []byte(str) |
| 37 | result := []byte{} |
| 38 | rand.Seed(time.Now().UnixNano() + int64(rand.Intn(100))) |
| 39 | for i := 0; i < length; i++ { |
| 40 | result = append(result, bytes[rand.Intn(len(bytes))]) |
| 41 | } |
| 42 | return string(result) |
| 43 | } |
| 44 | func main() { |
| 45 | |
| 46 | fmt.Println(logo) |