From: Chris Duncan Date: Mon, 6 Jan 2025 15:00:38 +0000 (-0800) Subject: Yep, it was an issue. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=37c9fb07c23dde1faca9834d15ebc502e642a7f8;p=libnemo.git Yep, it was an issue. --- 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;