Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EntropySource wrapper #235

Merged
merged 8 commits into from
Feb 5, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Silence unused variable warning
pitdicker committed Feb 2, 2018
commit 8c500a41516ef13b505cb0e4e8b7d274d52a702c
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1073,9 +1073,9 @@ impl Rng for EntropyRng {
Ok(jitter_rng) => {
switch_rng = Some(EntropySource::Jitter(jitter_rng));
}
Err(jitter_error) => {
Err(_jitter_error) => {
warn!("EntropyRng: JitterRng failed: {}",
jitter_error);
_jitter_error);
return Err(os_rng_error);
}
}
@@ -1091,9 +1091,9 @@ impl Rng for EntropyRng {
Ok(jitter_rng) => {
switch_rng = Some(EntropySource::Jitter(jitter_rng));
}
Err(jitter_error) => {
Err(_jitter_error) => {
warn!("EntropyRng: JitterRng failed: {}",
jitter_error);
_jitter_error);
return Err(os_rng_error);
}
}