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

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