mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 18:11:20 +00:00
Update rand.js
This commit is contained in:
parent
ec3398c99e
commit
503641bdb0
|
|
@ -32,6 +32,14 @@ function makeString(length, characterNames) {
|
|||
characters += '0123456789';
|
||||
break;
|
||||
|
||||
case 'base64':
|
||||
characters += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||
break;
|
||||
|
||||
case 'hex':
|
||||
characters += '0123456789abcdef';
|
||||
break;
|
||||
|
||||
default:
|
||||
characters += characterNames[i];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user