brorand
Advanced tools
Comparing version 1.0.3 to 1.0.4
13
index.js
@@ -46,10 +46,9 @@ var r; | ||
// Emulate crypto API using randy | ||
var crypto = { | ||
randomBytes: function randomBytes(n) { | ||
var res = new Uint8Array(n); | ||
for (var i = 0; i < res.length; i++) | ||
res[i] = this.rand.getByte(); | ||
return res; | ||
} | ||
Rand.prototype._rand = function _rand(n) { | ||
var res = new Uint8Array(n); | ||
for (var i = 0; i < res.length; i++) | ||
res[i] = this.rand.getByte(); | ||
return res; | ||
}; | ||
return; | ||
} | ||
@@ -56,0 +55,0 @@ Rand.prototype._rand = function _rand(n) { |
{ | ||
"name": "brorand", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Random number generator for browsers and node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3282
59