From 7225b380d5be2f6590b690657fae1399d0486414 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 6 Nov 2022 15:35:43 +0200 Subject: [PATCH] fixed PseudorandomString --- tools/security/random.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/security/random.go b/tools/security/random.go index 9265e94d..d219363a 100644 --- a/tools/security/random.go +++ b/tools/security/random.go @@ -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