1
0
mirror of https://github.com/S2-/securerandomstring.git synced 2025-08-02 18:30:04 +02:00

make urlsafe the default

This commit is contained in:
s2
2015-08-27 23:31:32 +02:00
parent f4c0783cfd
commit 9a72a2cfe2
3 changed files with 18 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ function srs(options, cb) {
} else {
options = options || {};
}
options.urlsafe = typeof(options.urlsafe) === 'boolean' ? options.urlsafe : true;
var length = options['length'] || 32;
// async path