diff --git a/tor-circmgr/src/lib.rs b/tor-circmgr/src/lib.rs index f292de140..296652444 100644 --- a/tor-circmgr/src/lib.rs +++ b/tor-circmgr/src/lib.rs @@ -28,6 +28,9 @@ use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::Arc; use std::time::{Duration, Instant}; +#[cfg(feature = "experimental-api")] +use rand::CryptoRng; + mod err; pub mod path; @@ -561,7 +564,7 @@ impl CircMgr { /// This function is unstable. It is only enabled if the crate was /// built with the `experimental-api` feature. #[cfg(feature = "experimental-api")] - pub async fn build_path( + pub async fn build_path( &self, rng: &mut R, netdir: DirInfo<'_>,