From 836e22112ae050b30cdc944aef2e5435302f5359 Mon Sep 17 00:00:00 2001 From: Yacine Hmito Date: Fri, 15 Jan 2021 01:24:38 +0100 Subject: refactor(op_crates/crypto): Prefix ops with "op_crypto_" (#9067) --- op_crates/crypto/01_crypto.js | 2 +- op_crates/crypto/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'op_crates') diff --git a/op_crates/crypto/01_crypto.js b/op_crates/crypto/01_crypto.js index 27f630b7e..594fc81b0 100644 --- a/op_crates/crypto/01_crypto.js +++ b/op_crates/crypto/01_crypto.js @@ -36,7 +36,7 @@ arrayBufferView.byteOffset, arrayBufferView.byteLength, ); - core.jsonOpSync("op_get_random_values", {}, ui8); + core.jsonOpSync("op_crypto_get_random_values", {}, ui8); return arrayBufferView; } diff --git a/op_crates/crypto/lib.rs b/op_crates/crypto/lib.rs index d7644166c..61290080d 100644 --- a/op_crates/crypto/lib.rs +++ b/op_crates/crypto/lib.rs @@ -25,7 +25,7 @@ pub fn init(isolate: &mut JsRuntime) { } } -pub fn op_get_random_values( +pub fn op_crypto_get_random_values( state: &mut OpState, _args: Value, zero_copy: &mut [ZeroCopyBuf], -- cgit v1.2.3