summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/random.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-09-23 13:34:55 +0530
committerGitHub <noreply@github.com>2023-09-23 10:04:55 +0200
commit75a724890d94267a02bd431f98d3d7d5866d95e7 (patch)
treeeff10e783aaeb9e4dca6af76e1872ed877413d78 /ext/node/polyfills/internal/crypto/random.ts
parent365d1ac7c2c6e81cbc32135ed6a099f3caaa6110 (diff)
fix(node): supported arguments to `randomFillSync` (#20637)
Fixes https://github.com/denoland/deno/issues/20634
Diffstat (limited to 'ext/node/polyfills/internal/crypto/random.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/random.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/polyfills/internal/crypto/random.ts b/ext/node/polyfills/internal/crypto/random.ts
index a02d232e8..e8776cdf0 100644
--- a/ext/node/polyfills/internal/crypto/random.ts
+++ b/ext/node/polyfills/internal/crypto/random.ts
@@ -8,7 +8,7 @@ import { notImplemented } from "ext:deno_node/_utils.ts";
import randomBytes from "ext:deno_node/internal/crypto/_randomBytes.ts";
import randomFill, {
randomFillSync,
-} from "ext:deno_node/internal/crypto/_randomFill.ts";
+} from "ext:deno_node/internal/crypto/_randomFill.mjs";
import randomInt from "ext:deno_node/internal/crypto/_randomInt.ts";
import {
validateBoolean,
@@ -29,7 +29,7 @@ export { default as randomBytes } from "ext:deno_node/internal/crypto/_randomByt
export {
default as randomFill,
randomFillSync,
-} from "ext:deno_node/internal/crypto/_randomFill.ts";
+} from "ext:deno_node/internal/crypto/_randomFill.mjs";
export { default as randomInt } from "ext:deno_node/internal/crypto/_randomInt.ts";
const primordials = globalThis.__bootstrap.primordials;