diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 593e469952ad89..90c3eee2419d3f 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -4015,6 +4015,17 @@ const { console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] ``` +### `crypto.getRandomValues(typedArray)` + + + +* `typedArray` {Buffer|TypedArray|DataView|ArrayBuffer} +* Returns: {Buffer|TypedArray|DataView|ArrayBuffer} Returns `typedArray`. + +A convenient alias for [`crypto.webcrypto.getRandomValues()`][]. + ### `crypto.hkdf(digest, ikm, salt, info, keylen, callback)` + +* Type: {SubtleCrypto} + +A convenient alias for [`crypto.webcrypto.subtle`][]. + ### `crypto.timingSafeEqual(a, b)`