Skip to content

Commit bb33c74

Browse files
MrJithiltargos
authored andcommitted
test: add getRandomValues return length
PR-URL: #46357 Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent b9771c9 commit bb33c74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-webcrypto-random.js

+5
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
6969
);
7070
}
7171
}
72+
73+
{
74+
const typedArray = new Uint8Array(32);
75+
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
76+
}

0 commit comments

Comments
 (0)