Skip to content

Commit

Permalink
Use EntropyRng instead of OsRng (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed May 6, 2019
1 parent 993e59a commit 681faff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixed-hash/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ macro_rules! impl_rand_for_fixed_hash {

/// Assign `self` to a cryptographically random value.
pub fn randomize(&mut self) {
let mut rng = $crate::rand::OsRng::new().unwrap();
let mut rng = $crate::rand::rngs::EntropyRng::new();
self.randomize_using(&mut rng);
}

Expand Down

0 comments on commit 681faff

Please sign in to comment.