From 37c9fb07c23dde1faca9834d15ebc502e642a7f8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 6 Jan 2025 07:00:38 -0800 Subject: [PATCH] Yep, it was an issue. --- src/lib/workers/powgpu.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/workers/powgpu.ts b/src/lib/workers/powgpu.ts index aa9cbea..65df379 100644 --- a/src/lib/workers/powgpu.ts +++ b/src/lib/workers/powgpu.ts @@ -199,11 +199,10 @@ export class PowGpu extends WorkerInterface { /** * Initialize (nonce||blockhash) concatenation - * NOTE: blake2b reference uses uint64_t whereas we have u32 - * Array length might need to increase from 16 to 32 because of this - * Unsure why it works anyway now since it should throw out-of-range error? + * Reference implementation uses uint64_t whereas we have u32 + * Array length increased from original 16 to 32 to compensate */ - var m: array; + var m: array; m[0u] = ubo.random; m[1u] = ubo.random ^ id; m[2u] = ubo.blockhash[0u].x; -- 2.34.1