Skip to content

Commit

Permalink
[crypto] benchmark allows larger input and doesn't depend on webcrypt…
Browse files Browse the repository at this point in the history
…o true random values
  • Loading branch information
dmonad committed Aug 25, 2023
1 parent 12a0273 commit 4305f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto.test.js
Expand Up @@ -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<Uint8Array>}
Expand Down

0 comments on commit 4305f46

Please sign in to comment.