PseudorandomString generates a pseudorandom string with the specified length. The generated string matches [A-Za-z0-9]+ and it's transparent to URL-encoding. For a cryptographically random string (but a little bit slower) use RandomString instead.
(length int)
| 40 | // |
| 41 | // For a cryptographically random string (but a little bit slower) use RandomString instead. |
| 42 | func PseudorandomString(length int) string { |
| 43 | return PseudorandomStringWithAlphabet(length, defaultRandomAlphabet) |
| 44 | } |
| 45 | |
| 46 | // PseudorandomStringWithAlphabet generates a pseudorandom string |
| 47 | // with the specified length and characters set. |
searching dependent graphs…