[tor-commits] [tor/master] rust: Make Rng::new() methods public.

nickm at torproject.org nickm at torproject.org
Wed May 16 13:16:59 UTC 2018


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

    rust: Make Rng::new() methods public.
---
 src/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
index cfd96c961..d5fae8a32 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()",





More information about the tor-commits mailing list