base62-random
Advanced tools
Comparing version 0.1.1 to 0.2.0-1
@@ -60,3 +60,5 @@ 'use strict'; | ||
strIdx = 0 | ||
return str = crypto.randomBytes(BUFFER_SIZE).toString('base64').replace(/[\+\=\/]/g,'') | ||
return str = crypto.randomBytes(BUFFER_SIZE) | ||
.toString('base64') | ||
.replace(/[+.=/]/g,'') | ||
} | ||
@@ -68,3 +70,3 @@ | ||
var tmp = Array(BUFFER_SIZE) | ||
for (i=0; i<BUFFER_SIZE; i++){ | ||
for ( i=0; i<BUFFER_SIZE; i++){ | ||
// wastes some bits, some bit pushing should save the extra 4 | ||
@@ -71,0 +73,0 @@ tmp.push(chars[buf[i] % 62]) |
{ | ||
"name": "base62-random", | ||
"version": "0.1.1", | ||
"version": "0.2.0-1", | ||
"description": "Fast base62 random", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47382
187