test: add getRandomValues return length

PR-URL: https://github.com/nodejs/node/pull/46357
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Jithil P Ponnan authored and GitHub committed 2023-05-13 08:40:42 +00:00
1 parent 2dd6d76c89
commit e74b84e458
1 file changed
+5
+5
View File
@@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
);
}
}
{
const typedArray = new Uint8Array(32);
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
}