diff --git a/doc/api/crypto.md b/doc/api/crypto.md index c837c4435bdfe9..1899594504abb8 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -4051,6 +4051,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)`