From eea8dfca941f9f1478377dc4c0ddf57e4c7b131a Mon Sep 17 00:00:00 2001 From: larry-the-table-guy <180724454+larry-the-table-guy@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:50:22 -0500 Subject: [PATCH] PRNG: Address 'TODO: benchmark' comment The alternative big-endian read impl is indeed slower. --- sim/prng.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/sim/prng.ts b/sim/prng.ts index 503f75dff6e2..9804bdc3db53 100644 --- a/sim/prng.ts +++ b/sim/prng.ts @@ -194,8 +194,6 @@ export class SodiumRNG implements RNG { this.seed = buf.slice(0, 32); // reading big-endian return buf.slice(32, 36).reduce((a, b) => a * 256 + b); - // alternative, probably slower (TODO: benchmark) - // return parseInt(Utils.bufReadHex(buf, 32, 36), 16); } }