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 2023-05-13 18:40:42 +10:00 committed by GitHub
parent 2dd6d76c89
commit e74b84e458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,3 +69,8 @@ for (const ctor of intTypedConstructors) {
);
}
}
{
const typedArray = new Uint8Array(32);
assert.strictEqual(crypto.getRandomValues(typedArray), typedArray);
}