Skip to content

Commit

Permalink
squash: add test for Buffer instance
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jun 30, 2022
1 parent b12f65d commit 8fdb386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-webcrypto-random.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ for (const ctor of intTypedConstructors) {
}

{
const buf = new Uint8Array(10);
const buf = Buffer.alloc(10);
const before = Buffer.from(buf).toString('hex');
webcrypto.getRandomValues(buf);
const after = Buffer.from(buf).toString('hex');
Expand Down

0 comments on commit 8fdb386

Please sign in to comment.