Skip to content

Commit

Permalink
whoops...
Browse files Browse the repository at this point in the history
  • Loading branch information
notsatvrn committed Jan 2, 2024
1 parent 6883e61 commit eea0534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ impl Default for GxBuildHasher {
#[inline]
fn default() -> GxBuildHasher {
let mut uninit: MaybeUninit<State> = MaybeUninit::uninit();
#[cfg(entopy)]
#[cfg(any(target_feature = "rdrand", feature = "std"))]
let mut rng = rand_chacha::ChaCha12Rng::from_entropy();
#[cfg(not(entropy))]
#[cfg(not(any(target_feature = "rdrand", feature = "std")))]
let mut rng = rand_chacha::ChaCha12Rng::from_seed(const_random::const_random!([u8; 32]));
unsafe {
let ptr = uninit.as_mut_ptr() as *mut u8;
Expand Down

0 comments on commit eea0534

Please sign in to comment.