We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ac7f2 commit 0a78e03Copy full SHA for 0a78e03
lib/elliptic/utils.js
@@ -14,7 +14,9 @@ utils.encode = minUtils.encode;
14
// Represent num in a w-NAF form
15
function getNAF(num, w, bits) {
16
var naf = new Array(Math.max(num.bitLength(), bits) + 1);
17
- naf.fill(0);
+ for (var i = 0; i < naf.length; i += 1) {
18
+ naf[i] = 0;
19
+ }
20
21
var ws = 1 << (w + 1);
22
var k = num.clone();
0 commit comments