From da3f0af6d41f8fe7ac60d8effd953d6997754e17 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 3 Aug 2025 04:26:09 -0700 Subject: [PATCH] Revert fill change. --- src/lib/nano-nacl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/nano-nacl.ts b/src/lib/nano-nacl.ts index cd3ac9c..ef9dc4d 100644 --- a/src/lib/nano-nacl.ts +++ b/src/lib/nano-nacl.ts @@ -142,6 +142,7 @@ export class NanoNaCl { let v, c const s = 1 << 16 const t = new Array(31) + t.fill(0) // init t values for (let i = 0; i < 16; i++) { @@ -181,6 +182,7 @@ export class NanoNaCl { let v, c const s = 1 << 16 const t = new Array(31) + t.fill(0) // init t values, same as Multiply except we can skip some iterations of // the inner loop since a[x]*a[y] + a[y]*a[x] = 2*a[x]*a[y] -- 2.47.3