diff --git a/src/md5.js b/src/md5.js index cf692f4e..7e56496e 100644 --- a/src/md5.js +++ b/src/md5.js @@ -1,4 +1,4 @@ -import crypto from 'crypto'; +import crypto from 'node:crypto'; function md5(bytes) { if (Array.isArray(bytes)) { diff --git a/src/native.js b/src/native.js index 14f8b8f3..fb372ebc 100644 --- a/src/native.js +++ b/src/native.js @@ -1,3 +1,3 @@ -import crypto from 'crypto'; +import crypto from 'node:crypto'; export default { randomUUID: crypto.randomUUID }; diff --git a/src/rng.js b/src/rng.js index cdd4cfa7..ce2c7160 100644 --- a/src/rng.js +++ b/src/rng.js @@ -1,4 +1,4 @@ -import crypto from 'crypto'; +import crypto from 'node:crypto'; const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate let poolPtr = rnds8Pool.length; diff --git a/src/sha1.js b/src/sha1.js index bb46cbea..c5773362 100644 --- a/src/sha1.js +++ b/src/sha1.js @@ -1,4 +1,4 @@ -import crypto from 'crypto'; +import crypto from 'node:crypto'; function sha1(bytes) { if (Array.isArray(bytes)) {