We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8542e0 commit 5bd7296Copy full SHA for 5bd7296
examples/hello_world/src/lib.rs
@@ -19,9 +19,6 @@ use proxy_wasm::traits::*;
19
use proxy_wasm::types::*;
20
use std::time::Duration;
21
22
-#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
23
-use getrandom::fill;
24
-
25
proxy_wasm::main! {{
26
proxy_wasm::set_log_level(LogLevel::Trace);
27
proxy_wasm::set_root_context(|_| -> Box<dyn RootContext> { Box::new(HelloWorld) });
@@ -47,7 +44,7 @@ impl RootContext for HelloWorld {
47
44
} else {
48
45
let now: DateTime<Utc> = Utc::now();
49
46
let mut buf = [0u8; 1];
50
- fill(&mut buf).unwrap();
+ getrandom::fill(&mut buf).unwrap();
51
info!("It's {}, your lucky number is {}.", now, buf[0]);
52
}
53
0 commit comments