From 37629f6afd54c08180889d71777824c7e48642d3 Mon Sep 17 00:00:00 2001 From: N Date: Wed, 20 Nov 2024 11:47:03 -0800 Subject: [PATCH] chore: stderr rng warning (#1798) --- crates/sdk/src/lib.rs | 2 +- crates/zkvm/entrypoint/src/syscalls/sys.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sdk/src/lib.rs b/crates/sdk/src/lib.rs index 6ea715daf7..3c40bcb9d6 100644 --- a/crates/sdk/src/lib.rs +++ b/crates/sdk/src/lib.rs @@ -77,7 +77,7 @@ impl ProverClient { "mock" => Self { prover: Box::new(MockProver::new()) }, "local" => { #[cfg(debug_assertions)] - println!("Warning: Local prover in dev mode is not recommended. Proof generation may be slow."); + eprintln!("Warning: Local prover in dev mode is not recommended. Proof generation may be slow."); Self { #[cfg(not(feature = "cuda"))] prover: Box::new(CpuProver::new()), diff --git a/crates/zkvm/entrypoint/src/syscalls/sys.rs b/crates/zkvm/entrypoint/src/syscalls/sys.rs index 520d58ef90..48bd40713a 100644 --- a/crates/zkvm/entrypoint/src/syscalls/sys.rs +++ b/crates/zkvm/entrypoint/src/syscalls/sys.rs @@ -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 {