fixed PseudorandomString
This commit is contained in:
@@ -43,9 +43,9 @@ func RandomStringWithAlphabet(length int, alphabet string) string {
|
|||||||
//
|
//
|
||||||
// The generated string matches [A-Za-z0-9]+ and it's transparent to URL-encoding.
|
// 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 PseudorandomString instead.
|
// For a cryptographically random string (but a little bit slower) use RandomString instead.
|
||||||
func PseudorandomString(length int) string {
|
func PseudorandomString(length int) string {
|
||||||
return RandomStringWithAlphabet(length, defaultRandomAlphabet)
|
return PseudorandomStringWithAlphabet(length, defaultRandomAlphabet)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PseudorandomStringWithAlphabet generates a pseudorandom string
|
// PseudorandomStringWithAlphabet generates a pseudorandom string
|
||||||
|
|||||||
Reference in New Issue
Block a user