diff options
Diffstat (limited to 'test/parallel/test-webcrypto-random.js')
-rw-r--r-- | test/parallel/test-webcrypto-random.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parallel/test-webcrypto-random.js b/test/parallel/test-webcrypto-random.js index 31d4884d1f..c83a0964bc 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); +} |