@@ -1588,18 +1588,18 @@ This should normally never take longer than a few milliseconds. The only time
1588
1588
when generating the random bytes may conceivably block for a longer period of
1589
1589
time is right after boot, when the whole system is still low on entropy.
1590
1590
1591
- ### crypto.randomFillSync(buf [ , offset] [ , size ] )
1591
+ ### crypto.randomFillSync(buffer [ , offset] [ , size ] )
1592
1592
<!-- YAML
1593
1593
added: REPLACEME
1594
1594
-->
1595
1595
1596
- * ` buf ` {Buffer|Uint8Array} Must be supplied.
1596
+ * ` buffer ` {Buffer|Uint8Array} Must be supplied.
1597
1597
* ` offset ` {number} Defaults to ` 0 ` .
1598
- * ` size ` {number} Defaults to ` buf .length - offset` .
1598
+ * ` size ` {number} Defaults to ` buffer .length - offset` .
1599
1599
1600
1600
Synchronous version of [ ` crypto.randomFill() ` ] [ ] .
1601
1601
1602
- Returns ` buf `
1602
+ Returns ` buffer `
1603
1603
1604
1604
``` js
1605
1605
const buf = Buffer .alloc (10 );
@@ -1613,14 +1613,14 @@ crypto.randomFillSync(buf, 5, 5);
1613
1613
console .log (buf .toString (' hex' ));
1614
1614
```
1615
1615
1616
- ### crypto.randomFill(buf [ , offset] [ , size ] , callback)
1616
+ ### crypto.randomFill(buffer [ , offset] [ , size ] , callback)
1617
1617
<!-- YAML
1618
1618
added: REPLACEME
1619
1619
-->
1620
1620
1621
- * ` buf ` {Buffer|Uint8Array} Must be supplied.
1621
+ * ` buffer ` {Buffer|Uint8Array} Must be supplied.
1622
1622
* ` offset ` {number} Defaults to ` 0 ` .
1623
- * ` size ` {number} Defaults to ` buf .length - offset` .
1623
+ * ` size ` {number} Defaults to ` buffer .length - offset` .
1624
1624
* ` callback ` {Function} ` function(err, buf) {} ` .
1625
1625
1626
1626
This function is similar to [ ` crypto.randomBytes() ` ] [ ] but requires the first
@@ -2067,7 +2067,7 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
2067
2067
[ `crypto.getHashes()` ] : #crypto_crypto_gethashes
2068
2068
[ `crypto.pbkdf2()` ] : #crypto_crypto_pbkdf2_password_salt_iterations_keylen_digest_callback
2069
2069
[ `crypto.randomBytes()` ] : #crypto_crypto_randombytes_size_callback
2070
- [ `crypto.randomFill()` ] : #crypto_crypto_randombytesbuffer_buf_size_offset_cb
2070
+ [ `crypto.randomFill()` ] : #crypto_crypto_randomfill_buffer_offset_size_callback
2071
2071
[ `decipher.final()` ] : #crypto_decipher_final_output_encoding
2072
2072
[ `decipher.update()` ] : #crypto_decipher_update_data_input_encoding_output_encoding
2073
2073
[ `diffieHellman.setPublicKey()` ] : #crypto_diffiehellman_setpublickey_public_key_encoding
0 commit comments