From: Isis Lovecruft Date: Tue, 15 May 2018 01:45:29 +0000 (+0000) Subject: rust: Make Rng::new() methods public. X-Git-Tag: tor-0.3.4.1-alpha~6^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ac849da36ade48ae1d8cd7e1546549615785ae3;p=thirdparty%2Ftor.git rust: Make Rng::new() methods public. --- diff --git a/src/rust/rand/rng.rs b/src/rust/rand/rng.rs index cfd96c9617..d5fae8a32e 100644 --- a/src/rust/rand/rng.rs +++ b/src/rust/rand/rng.rs @@ -43,7 +43,7 @@ mod internal { impl TorRng { // C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c #[allow(dead_code)] - fn new() -> Self { + pub fn new() -> Self { if !c_tor_crypto_seed_rng() { tor_log_msg!(LogSeverity::Warn, LogDomain::General, "TorRng::from_seed()", @@ -90,7 +90,7 @@ mod internal { impl TorStrongestRng { // C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c #[allow(dead_code)] - fn new() -> Self { + pub fn new() -> Self { if !c_tor_crypto_seed_rng() { tor_log_msg!(LogSeverity::Warn, LogDomain::General, "TorStrongestRng::from_seed()",