tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2ac849da36ade48ae1d8cd7e1546549615785ae3
parent aab626405c312a33d521c9ca3729552fd9ccca2e
Author: Isis Lovecruft <isis@torproject.org>
Date:   Tue, 15 May 2018 01:45:29 +0000

rust: Make Rng::new() methods public.

Diffstat:
Msrc/rust/rand/rng.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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()",