diff --git a/crates/op-rbuilder/src/generator.rs b/crates/op-rbuilder/src/generator.rs index 7dc9670b7..d57b3e9b6 100644 --- a/crates/op-rbuilder/src/generator.rs +++ b/crates/op-rbuilder/src/generator.rs @@ -420,7 +420,7 @@ mod tests { use super::*; use alloy_eips::eip7685::Requests; use alloy_primitives::U256; - use rand::thread_rng; + use rand::rng; use reth::tasks::TokioTaskExecutor; use reth_chain_state::ExecutedBlockWithTrieUpdates; use reth_node_api::NodePrimitives; @@ -607,7 +607,7 @@ mod tests { #[tokio::test] async fn test_payload_generator() -> eyre::Result<()> { - let mut rng = thread_rng(); + let mut rng = rng(); let client = MockEthProvider::default(); let executor = TokioTaskExecutor::default();