mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-28 09:00:18 +01:00
lint
This commit is contained in:
parent
531a003a2a
commit
92db359654
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue