Update rand.js

This commit is contained in:
Namhyeon Go 2022-04-25 16:13:49 +09:00 committed by GitHub
parent ec3398c99e
commit 503641bdb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,14 @@ function makeString(length, characterNames) {
case 'number':
characters += '0123456789';
break;
case 'base64':
characters += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
break;
case 'hex':
characters += '0123456789abcdef';
break;
default:
characters += characterNames[i];