mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-03-18 05:37:49 +02:00
fixed PseudorandomString
This commit is contained in:
parent
fa791b7e96
commit
7225b380d5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user