mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
2dd6d76c89
commit
e74b84e458
1 file changed
+5
@@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const typedArray = new Uint8Array(32);
|
||||
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
|
||||
}
|
||||
Reference in new issue
Block a user