This commit is contained in:
Marie 2024-11-27 19:26:56 +00:00
parent 531a003a2a
commit 92db359654

View file

@ -14,8 +14,8 @@ export function secureRndstr(length = 32, { chars = LU_CHARS } = {}): string {
let str = '';
for (let i = 0; i < length; i++) {
const rand = crypto.randomInt(0, chars_len);
str += chars.charAt(rand);
const rand = crypto.randomInt(0, chars_len);
str += chars.charAt(rand);
}
return str;