diff options
author | Yacine Hmito <yacinehmito@users.noreply.github.com> | 2021-01-15 01:24:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 01:24:38 +0100 |
commit | 836e22112ae050b30cdc944aef2e5435302f5359 (patch) | |
tree | 45470aceb3a7bf39eadc820203ab638d3b956255 /runtime/ops/crypto.rs | |
parent | b8303c7812e3483c9ce63bbd8e2a9d420a47aee9 (diff) |
refactor(op_crates/crypto): Prefix ops with "op_crypto_" (#9067)
Diffstat (limited to 'runtime/ops/crypto.rs')
-rw-r--r-- | runtime/ops/crypto.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/ops/crypto.rs b/runtime/ops/crypto.rs index accd40ab5..8743f8597 100644 --- a/runtime/ops/crypto.rs +++ b/runtime/ops/crypto.rs @@ -1,5 +1,5 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -use deno_crypto::op_get_random_values; +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +use deno_crypto::op_crypto_get_random_values; use deno_crypto::rand::rngs::StdRng; use deno_crypto::rand::SeedableRng; @@ -10,5 +10,9 @@ pub fn init(rt: &mut deno_core::JsRuntime, maybe_seed: Option<u64>) { let mut state = op_state.borrow_mut(); state.put::<StdRng>(rng); } - super::reg_json_sync(rt, "op_get_random_values", op_get_random_values); + super::reg_json_sync( + rt, + "op_crypto_get_random_values", + op_crypto_get_random_values, + ); } |