@@ -1713,18 +1713,18 @@ This should normally never take longer than a few milliseconds. The only time
1713
1713
when generating the random bytes may conceivably block for a longer period of
1714
1714
time is right after boot, when the whole system is still low on entropy.
1715
1715
1716
- ### crypto.randomFillSync(buf [ , offset] [ , size ] )
1716
+ ### crypto.randomFillSync(buffer [ , offset] [ , size ] )
1717
1717
<!-- YAML
1718
1718
added: REPLACEME
1719
1719
-->
1720
1720
1721
- * ` buf ` {Buffer|Uint8Array} Must be supplied.
1721
+ * ` buffer ` {Buffer|Uint8Array} Must be supplied.
1722
1722
* ` offset ` {number} Defaults to ` 0 ` .
1723
- * ` size ` {number} Defaults to ` buf .length - offset` .
1723
+ * ` size ` {number} Defaults to ` buffer .length - offset` .
1724
1724
1725
1725
Synchronous version of [ ` crypto.randomFill() ` ] [ ] .
1726
1726
1727
- Returns ` buf `
1727
+ Returns ` buffer `
1728
1728
1729
1729
``` js
1730
1730
const buf = Buffer .alloc (10 );
@@ -1738,14 +1738,14 @@ crypto.randomFillSync(buf, 5, 5);
1738
1738
console .log (buf .toString (' hex' ));
1739
1739
```
1740
1740
1741
- ### crypto.randomFill(buf [ , offset] [ , size ] , callback)
1741
+ ### crypto.randomFill(buffer [ , offset] [ , size ] , callback)
1742
1742
<!-- YAML
1743
1743
added: REPLACEME
1744
1744
-->
1745
1745
1746
- * ` buf ` {Buffer|Uint8Array} Must be supplied.
1746
+ * ` buffer ` {Buffer|Uint8Array} Must be supplied.
1747
1747
* ` offset ` {number} Defaults to ` 0 ` .
1748
- * ` size ` {number} Defaults to ` buf .length - offset` .
1748
+ * ` size ` {number} Defaults to ` buffer .length - offset` .
1749
1749
* ` callback ` {Function} ` function(err, buf) {} ` .
1750
1750
1751
1751
This function is similar to [ ` crypto.randomBytes() ` ] [ ] but requires the first
@@ -2213,7 +2213,7 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
2213
2213
[ `crypto.getHashes()` ] : #crypto_crypto_gethashes
2214
2214
[ `crypto.pbkdf2()` ] : #crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback
2215
2215
[ `crypto.randomBytes()` ] : #crypto_crypto_randombytes_size_callback
2216
- [ `crypto.randomFill()` ] : #crypto_crypto_randombytesbuffer_buf_size_offset_cb
2216
+ [ `crypto.randomFill()` ] : #crypto_crypto_randomfill_buffer_offset_size_callback
2217
2217
[ `decipher.final()` ] : #crypto_decipher_final_output_encoding
2218
2218
[ `decipher.update()` ] : #crypto_decipher_update_data_input_encoding_output_encoding
2219
2219
[ `diffieHellman.setPublicKey()` ] : #crypto_diffiehellman_setpublickey_public_key_encoding
0 commit comments