Socket
Socket
Sign inDemoInstall

miller-rabin

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.5 to 2.0.0

bin/miller-rabin

3

lib/mr.js

@@ -86,3 +86,2 @@ var bn = require('bn.js');

var prime = true;
for (; k > 0; k--) {

@@ -114,3 +113,3 @@ var a = this._rand(n2);

return prime;
return false;
};
{
"name": "miller-rabin",
"version": "1.1.5",
"version": "2.0.0",
"description": "Miller Rabin algorithm for primality test",
"main": "lib/mr.js",
"bin": "bin/miller-rabin",
"scripts": {

@@ -28,5 +29,5 @@ "test": "mocha --reporter=spec test/**/*-test.js"

"dependencies": {
"bn.js": "^1.0.0",
"bn.js": "^2.0.0",
"brorand": "^1.0.1"
}
}
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