RandomString generates a cryptographically random string with the specified length. The generated string matches [A-Za-z0-9]+ and it's transparent to URL-encoding.
(length int)
| 12 | // |
| 13 | // The generated string matches [A-Za-z0-9]+ and it's transparent to URL-encoding. |
| 14 | func RandomString(length int) string { |
| 15 | return RandomStringWithAlphabet(length, defaultRandomAlphabet) |
| 16 | } |
| 17 | |
| 18 | // RandomStringWithAlphabet generates a cryptographically random string |
| 19 | // with the specified length and characters set. |
no test coverage detected
searching dependent graphs…