1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-18 05:37:49 +02:00

fixed PseudorandomString

This commit is contained in:
Gani Georgiev 2022-11-06 15:35:43 +02:00
parent fa791b7e96
commit 7225b380d5

View File

@ -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.
//
// 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 {
return RandomStringWithAlphabet(length, defaultRandomAlphabet)
return PseudorandomStringWithAlphabet(length, defaultRandomAlphabet)
}
// PseudorandomStringWithAlphabet generates a pseudorandom string