Alphanumeric returns a random alphanumeric string consits of [0-9a-zA-Z].
(length int)
| 292 | |
| 293 | // Alphanumeric returns a random alphanumeric string consits of [0-9a-zA-Z]. |
| 294 | func Alphanumeric(length int) string { |
| 295 | list := make([]byte, length) |
| 296 | |
| 297 | for i := range list { |
| 298 | list[i] = ALPHANUMERIC[privateRand.Intn(len(ALPHANUMERIC))] |
| 299 | } |
| 300 | |
| 301 | return string(list) |
| 302 | } |
| 303 | |
| 304 | func Boolean() bool { |
| 305 | nr := privateRand.Intn(2) |
searching dependent graphs…