@@ -2067,10 +2067,10 @@ const a = new Uint32Array(10);
2067
2067
console .log (crypto .randomFillSync (a).toString (' hex' ));
2068
2068
2069
2069
const b = new Float64Array (10 );
2070
- console .log (crypto .randomFillSync (a ).toString (' hex' ));
2070
+ console .log (crypto .randomFillSync (b ).toString (' hex' ));
2071
2071
2072
2072
const c = new DataView (new ArrayBuffer (10 ));
2073
- console .log (crypto .randomFillSync (a ).toString (' hex' ));
2073
+ console .log (crypto .randomFillSync (c ).toString (' hex' ));
2074
2074
```
2075
2075
2076
2076
### crypto.randomFill(buffer[ , offset] [ , size ] , callback)
@@ -2152,11 +2152,11 @@ added: v10.5.0
2152
2152
- ` keylen ` {number}
2153
2153
- ` options ` {Object}
2154
2154
- ` N ` {number} CPU/memory cost parameter. Must be a power of two greater
2155
- than one. ** Default:** ` 16384 ` .
2155
+ than one. ** Default:** ` 16384 ` .
2156
2156
- ` r ` {number} Block size parameter. ** Default:** ` 8 ` .
2157
2157
- ` p ` {number} Parallelization parameter. ** Default:** ` 1 ` .
2158
2158
- ` maxmem ` {number} Memory upper bound. It is an error when (approximately)
2159
- ` 128*N* r > maxmem ` ** Default:** ` 32 * 1024 * 1024 ` .
2159
+ ` 128 * N * r > maxmem ` . ** Default:** ` 32 * 1024 * 1024 ` .
2160
2160
- ` callback ` {Function}
2161
2161
- ` err ` {Error}
2162
2162
- ` derivedKey ` {Buffer}
@@ -2198,11 +2198,11 @@ added: v10.5.0
2198
2198
- ` keylen ` {number}
2199
2199
- ` options ` {Object}
2200
2200
- ` N ` {number} CPU/memory cost parameter. Must be a power of two greater
2201
- than one. ** Default:** ` 16384 ` .
2201
+ than one. ** Default:** ` 16384 ` .
2202
2202
- ` r ` {number} Block size parameter. ** Default:** ` 8 ` .
2203
2203
- ` p ` {number} Parallelization parameter. ** Default:** ` 1 ` .
2204
2204
- ` maxmem ` {number} Memory upper bound. It is an error when (approximately)
2205
- ` 128*N* r > maxmem ` ** Default:** ` 32 * 1024 * 1024 ` .
2205
+ ` 128 * N * r > maxmem ` . ** Default:** ` 32 * 1024 * 1024 ` .
2206
2206
- Returns: {Buffer}
2207
2207
2208
2208
Provides a synchronous [ scrypt] [ ] implementation. Scrypt is a password-based
0 commit comments