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:
parent
2dd6d76c89
commit
e74b84e458
@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const typedArray = new Uint8Array(32);
|
||||
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user