From 4305f466b48488306739e13cd2084ab9d2d639fe Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Fri, 25 Aug 2023 20:25:47 +0200 Subject: [PATCH] [crypto] benchmark allows larger input and doesn't depend on webcrypto true random values --- crypto.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.test.js b/crypto.test.js index 789d8f8..70b74ce 100644 --- a/crypto.test.js +++ b/crypto.test.js @@ -171,7 +171,7 @@ export const testEncryptionPerformance = async tc => { */ const data = [] for (let i = 0; i < N; i++) { - data.push(webcrypto.getRandomValues(new Uint8Array(BLen))) + data.push(prng.uint8Array(tc.prng, BLen)) } /** * @type {Array}