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 and targos committed May 15, 2023
1 parent b9771c9 commit bb33c74
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 bb33c74

Please sign in to comment.