summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2020-11-14 02:31:57 +0530
committerGitHub <noreply@github.com>2020-11-13 22:01:57 +0100
commitd5661f677e9f5675fc488c4629e85a58764ec3ff (patch)
tree6878ec81e2da2d41d93e3f429a189edcd4202539 /cli/worker.rs
parent2c8439bc1e8118225c8ba4d64658c1c6b2182937 (diff)
refactor: deno_crypto op crate (#7956)
This commit factors out "deno_crypto" op crate. "rand" crate dependency was consequently moved to "deno_crypto" crate and reexported.
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index a09e96ce4..e27d6f73e 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -278,7 +278,7 @@ impl MainWorker {
ops::fetch::init(js_runtime, program_state.flags.ca_file.as_deref());
ops::timers::init(js_runtime);
ops::worker_host::init(js_runtime, None);
- ops::random::init(js_runtime, program_state.flags.seed);
+ ops::crypto::init(js_runtime, program_state.flags.seed);
ops::reg_json_sync(js_runtime, "op_close", deno_core::op_close);
ops::reg_json_sync(js_runtime, "op_resources", deno_core::op_resources);
ops::reg_json_sync(
@@ -469,7 +469,7 @@ impl WebWorker {
ops::permissions::init(js_runtime);
ops::plugin::init(js_runtime);
ops::process::init(js_runtime);
- ops::random::init(js_runtime, program_state.flags.seed);
+ ops::crypto::init(js_runtime, program_state.flags.seed);
ops::runtime_compiler::init(js_runtime);
ops::signal::init(js_runtime);
ops::tls::init(js_runtime);