Skip to content

Commit

Permalink
chore: stderr rng warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Nov 19, 2024
1 parent 3a1e855 commit 74fded7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/zkvm/entrypoint/src/syscalls/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static SYS_RAND_WARNING: std::sync::Once = std::sync::Once::new();
#[no_mangle]
pub unsafe extern "C" fn sys_rand(recv_buf: *mut u8, words: usize) {
SYS_RAND_WARNING.call_once(|| {
println!("WARNING: Using insecure random number generator.");
eprintln!("WARNING: Using insecure random number generator.");
});
let mut rng = RNG.lock().unwrap();
for i in 0..words {
Expand Down

0 comments on commit 74fded7

Please sign in to comment.