Skip to content

Commit

Permalink
fix: Put get_random_u64 method behind correct feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed Aug 4, 2024
1 parent 63e5475 commit a0d6757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub(crate) const fn check_for_valid_secret_value(current_value: usize, secret: &
true
}

#[cfg(feature = "randomised_wyhash")]
#[inline]
pub(crate) fn get_random_u64() -> u64 {
#[cfg(not(feature = "threadrng_wyhash"))]
Expand Down

0 comments on commit a0d6757

Please sign in to comment.