From 3bf8386616828cd4b0645f9538a71248469b77eb Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 27 Aug 2026 10:06:12 -0700 Subject: [PATCH] Fix shadowed loop counter. --- test/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.html b/test/index.html index c74d091..99b4512 100644 --- a/test/index.html +++ b/test/index.html @@ -380,10 +380,10 @@ SPDX-License-Identifier: GPL-3.0-or-later if (api === 'nano25519 with bulk block verification') { publicKey = derive(privateKey, 'nano25519') const blocks = [] - for (let i = 0; i < 32; i++) { + for (let b = 0; blockhash < 32; b++) { blockHash = random() signature = sign(blockHash, privateKey, publicKey, 'nano25519') - blocks[i] = { hash: blockHash, signature } + blocks[b] = { hash: blockHash, signature } } start = performance.now() const verified = nano25519.verify_blocks(publicKey, blocks) -- 2.52.0