brorand
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -10,4 +10,4 @@ var r; | ||
function Rand(randy) { | ||
this.randy = randy; | ||
function Rand(rand) { | ||
this.rand = rand; | ||
} | ||
@@ -51,3 +51,3 @@ module.exports.Rand = Rand; | ||
for (var i = 0; i < res.length; i++) | ||
res[i] = this.randy.getRandBits(8); | ||
res[i] = this.rand.getByte(); | ||
return res; | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "brorand", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Random number generator for browsers and node.js", | ||
@@ -27,6 +27,3 @@ "main": "index.js", | ||
"mocha": "^2.0.1" | ||
}, | ||
"optionalDependencies": { | ||
"randy.js": "^1.5.1" | ||
} | ||
} |
0
3303