summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-01-01 21:59:44 -0800
committerroot <root@DESKTOP-5KK9VIR.localdomain>2021-01-07 12:44:36 -0800
commit0008a675ff1c56e736103b0095868dcba8efdce5 (patch)
tree4225f9c12c0f6ab28d58d95f454ad731ebc6c380 /lib/crypto.js
parent9ff555b7a25c03e330c6f4c93b022b1d5d5d9351 (diff)
downloadnode-new-0008a675ff1c56e736103b0095868dcba8efdce5.tar.gz
crypto: implement randomuuid
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/36729 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Ben Coe <bencoe@gmail.com>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 0179242e84..d9cfb8cc37 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -53,7 +53,8 @@ const {
randomBytes,
randomFill,
randomFillSync,
- randomInt
+ randomInt,
+ randomUUID,
} = require('internal/crypto/random');
const {
pbkdf2,
@@ -199,6 +200,7 @@ module.exports = {
randomFill,
randomFillSync,
randomInt,
+ randomUUID,
scrypt,
scryptSync,
sign: signOneShot,