Browse Source

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

Isis Lovecruft 6 years ago
parent
commit
2ac849da36
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/rust/rand/rng.rs

+ 2 - 2
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()",