diff --git a/test/parallel/test-webcrypto-random.js b/test/parallel/test-webcrypto-random.js index 31d4884d1f653f..c83a0964bc5805 100644 --- a/test/parallel/test-webcrypto-random.js +++ b/test/parallel/test-webcrypto-random.js @@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) { ); } } + +{ + const typedArray = new Uint8Array(32); + assert.strictEqual(crypto.getRandomValues(typedArray), typedArray); +}