diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-05-15 01:45:29 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-05-15 17:45:09 +0000 |
commit | 2ac849da36ade48ae1d8cd7e1546549615785ae3 (patch) | |
tree | 5a3ce221fab63fe56a8b16f33a7aedc38ef81eba /src/rust | |
parent | aab626405c312a33d521c9ca3729552fd9ccca2e (diff) | |
download | tor-2ac849da36ade48ae1d8cd7e1546549615785ae3.tar.gz tor-2ac849da36ade48ae1d8cd7e1546549615785ae3.zip |
rust: Make Rng::new() methods public.
Diffstat (limited to 'src/rust')
-rw-r--r-- | src/rust/rand/rng.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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()", |