File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ log = "0.4"
17
17
proxy-wasm = { path = " ../../" }
18
18
19
19
[target .'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))' .dependencies ]
20
- getrandom = " 0.2 "
20
+ getrandom = " 0.3 "
21
21
22
22
[profile .release ]
23
23
lto = true
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use proxy_wasm::types::*;
20
20
use std:: time:: Duration ;
21
21
22
22
#[ cfg( not( all( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
23
- use getrandom:: getrandom ;
23
+ use getrandom:: fill ;
24
24
25
25
proxy_wasm:: main! { {
26
26
proxy_wasm:: set_log_level( LogLevel :: Trace ) ;
@@ -47,7 +47,7 @@ impl RootContext for HelloWorld {
47
47
} else {
48
48
let now: DateTime <Utc > = Utc :: now( ) ;
49
49
let mut buf = [ 0u8 ; 1 ] ;
50
- getrandom ( & mut buf) . unwrap( ) ;
50
+ fill ( & mut buf) . unwrap( ) ;
51
51
info!( "It's {}, your lucky number is {}." , now, buf[ 0 ] ) ;
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments