From: Chris Duncan Date: Thu, 27 Aug 2026 17:06:12 +0000 (-0700) Subject: Fix shadowed loop counter. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3bf8386616828cd4b0645f9538a71248469b77eb;p=nano25519.git Fix shadowed loop counter. --- 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)