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

This commit is contained in:
Isis Lovecruft 2018-05-15 01:45:29 +00:00
parent aab626405c
commit 2ac849da36
No known key found for this signature in database
GPG Key ID: B8938BC5E86C046F
1 changed files with 2 additions and 2 deletions

View File

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