mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
rust: Make Rng::new() methods public.
This commit is contained in:
parent
aab626405c
commit
2ac849da36
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ mod internal {
|
||||||
impl TorRng {
|
impl TorRng {
|
||||||
// C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c
|
// C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
if !c_tor_crypto_seed_rng() {
|
if !c_tor_crypto_seed_rng() {
|
||||||
tor_log_msg!(LogSeverity::Warn, LogDomain::General,
|
tor_log_msg!(LogSeverity::Warn, LogDomain::General,
|
||||||
"TorRng::from_seed()",
|
"TorRng::from_seed()",
|
||||||
|
@ -90,7 +90,7 @@ mod internal {
|
||||||
impl TorStrongestRng {
|
impl TorStrongestRng {
|
||||||
// C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c
|
// C_RUST_COUPLED: `crypto_seed_rng()` /src/common/crypto_rand.c
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
if !c_tor_crypto_seed_rng() {
|
if !c_tor_crypto_seed_rng() {
|
||||||
tor_log_msg!(LogSeverity::Warn, LogDomain::General,
|
tor_log_msg!(LogSeverity::Warn, LogDomain::General,
|
||||||
"TorStrongestRng::from_seed()",
|
"TorStrongestRng::from_seed()",
|
||||||
|
|
Loading…
Add table
Reference in a new issue