Skip to content

Commit

Permalink
test: add getRandomValues return length
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJithil committed May 13, 2023
1 parent af9b48a commit 64e8f23
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 64e8f23

Please sign in to comment.