diff options
Diffstat (limited to 'bench/snippets/crypto-hasher.mjs')
-rw-r--r-- | bench/snippets/crypto-hasher.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/snippets/crypto-hasher.mjs b/bench/snippets/crypto-hasher.mjs index 1e850e19f..73835bc0c 100644 --- a/bench/snippets/crypto-hasher.mjs +++ b/bench/snippets/crypto-hasher.mjs @@ -3,8 +3,8 @@ import { bench, run } from "mitata"; import crypto from "node:crypto"; -var foo = new Uint8Array(65536); -crypto.getRandomValues(foo); +var foo = Buffer.allocUnsafe(16384); +foo.fill(123); // if ("Bun" in globalThis) { // const { CryptoHasher } = Bun; |