circmgr: Add missing rng trait to build_path()

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2021-04-09 08:45:09 -04:00
parent 1da7fccfc0
commit 8bd09067cf
1 changed files with 4 additions and 1 deletions

View File

@ -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<R: Rng>(
pub async fn build_path<R: Rng + CryptoRng>(
&self,
rng: &mut R,
netdir: DirInfo<'_>,