Socket
Socket
Sign inDemoInstall

brorand

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc