summaryrefslogtreecommitdiff
path: root/cli/ops/random.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-21 18:36:37 +0200
committerGitHub <noreply@github.com>2020-09-21 18:36:37 +0200
commit92edc364426ddb4c80292ebe7e702c02f9344c5b (patch)
tree2fb92cdd08b0d10a59a2cd4b4820f7afbca17486 /cli/ops/random.rs
parent9d738fc1977e0bd3d36f361198a1101e17c3b3b3 (diff)
refactor: use futures and serde_json from deno_core (#7614)
Diffstat (limited to 'cli/ops/random.rs')
-rw-r--r--cli/ops/random.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/random.rs b/cli/ops/random.rs
index 84e38d105..53aedb73f 100644
--- a/cli/ops/random.rs
+++ b/cli/ops/random.rs
@@ -1,12 +1,13 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use deno_core::error::AnyError;
+use deno_core::serde_json::json;
+use deno_core::serde_json::Value;
use deno_core::OpState;
use deno_core::ZeroCopyBuf;
use rand::rngs::StdRng;
use rand::thread_rng;
use rand::Rng;
-use serde_json::Value;
pub fn init(rt: &mut deno_core::JsRuntime) {
super::reg_json_sync(rt, "op_get_random_values", op_get_random_values);