(n int)
| 495 | } |
| 496 | |
| 497 | func randomString(n int) string { |
| 498 | const alphanum = "-AbCdEfGhIjKlMnOpQrStUvWxYz0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ_" |
| 499 | |
| 500 | var bytes = make([]byte, n) |
| 501 | rand.Read(bytes) |
| 502 | for i, b := range bytes { |
| 503 | bytes[i] = alphanum[b%byte(len(alphanum))] |
| 504 | } |
| 505 | return string(bytes) |
| 506 | } |
| 507 | |
| 508 | func randomID(n int) string { |
| 509 | const alphanum = "ABCDEFGHJKLMNOPQRSTUVWXYZ0123456789" |
no outgoing calls
no test coverage detected