mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
Use randomBytes intead of pseudoRandomBytes
This commit is contained in:
parent
0a1f24066f
commit
ef81363ad7
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ function binaryMD5(stringToHash) {
|
|||
*/
|
||||
function random16() {
|
||||
return new Promise((resolve, reject) => {
|
||||
crypto.pseudoRandomBytes(16, (err, raw) => {
|
||||
crypto.randomBytes(16, (err, raw) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue