randomatic
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -12,2 +12,3 @@ /*! | ||
var typeOf = require('kind-of'); | ||
var mathRandom = require('math-random'); | ||
@@ -19,2 +20,3 @@ /** | ||
module.exports = randomatic; | ||
module.exports.isCrypto = !!mathRandom.cryptographic; | ||
@@ -83,5 +85,5 @@ /** | ||
while (length--) { | ||
res += mask.charAt(parseInt(Math.random() * mask.length, 10)); | ||
res += mask.charAt(parseInt(mathRandom() * mask.length, 10)); | ||
} | ||
return res; | ||
}; |
{ | ||
"name": "randomatic", | ||
"description": "Generate randomized strings of a specified length using simple character sequences. The original generate-password.", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/jonschlinkert/randomatic", | ||
@@ -12,3 +12,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"Jon Schlinkert (http://twitter.com/jonschlinkert)", | ||
"Paul Miller (paulmillr.com)", | ||
"Michael Rhodes (http://michaelrhod.es)", | ||
"Paul Miller (https://paulmillr.com)", | ||
"Rouven Weßling (www.rouvenwessling.de)", | ||
@@ -34,3 +35,4 @@ "Sun Knudsen (https://sunknudsen.com)" | ||
"is-number": "^4.0.0", | ||
"kind-of": "^6.0.0" | ||
"kind-of": "^6.0.0", | ||
"math-random": "^1.0.1" | ||
}, | ||
@@ -50,6 +52,6 @@ "devDependencies": { | ||
"chars", | ||
"generate", | ||
"generate-password", | ||
"numeric", | ||
"password", | ||
"generate", | ||
"generate-password", | ||
"rand", | ||
@@ -56,0 +58,0 @@ "random", |
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
11774
71
3
+ Addedmath-random@^1.0.1
+ Addedmath-random@1.0.4(transitive)