Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bn.js

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bn.js - npm Package Compare versions

Comparing version 0.11.3 to 0.11.4

v8.log

5

1.js

@@ -12,7 +12,6 @@ var bn = require('./');

console.time('montSqr');
am.words = new Array(100);
for (var i = 0; i < 4000000; i++) {
t += a.mulTo(a, am).length;
for (var i = 0; i < 8000; i++) {
t += am.redInvm().length;
}
console.timeEnd('montSqr');
console.log(t);

9

lib/bn.js

@@ -1319,7 +1319,6 @@ // Utils

}
for (var i = 0; i < num.length; i++) {
if (num.words[i] >= 0x4000000) {
num.words[i + 1] += num.words[i] >>> 26;
num.words[i] &= 0x3ffffff;
}
var w = num.words[num.length - 2];
if (w >= 0x4000000) {
num.words[num.length - 1] += w >>> 26;
num.words[num.length - 2] = w & 0x3ffffff;
}

@@ -1326,0 +1325,0 @@ if (num.words[num.length - 1] === 0)

{
"name": "bn.js",
"version": "0.11.3",
"version": "0.11.4",
"description": "Big number implementation in pure javascript",

@@ -5,0 +5,0 @@ "main": "lib/bn.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc