Skip to content

Commit

Permalink
test: add getRandomValues return length
Browse files Browse the repository at this point in the history
PR-URL: #46357
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
MrJithil authored May 13, 2023
1 parent 2dd6d76 commit e74b84e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-webcrypto-random.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
);
}
}

{
const typedArray = new Uint8Array(32);
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
}

0 comments on commit e74b84e

Please sign in to comment.