From 8bd09067cf92b327bde6c931cfa62befe847ec71 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 9 Apr 2021 08:45:09 -0400 Subject: [PATCH] circmgr: Add missing rng trait to build_path() Signed-off-by: David Goulet --- tor-circmgr/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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<'_>,