[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] rust: Make Rng::new() methods public.
commit 2ac849da36ade48ae1d8cd7e1546549615785ae3
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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()",
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits