Skip to content

Commit

Permalink
chore: Cleanup old code and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed Apr 18, 2024
1 parent 9464e42 commit c672021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/final_v4_2/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ impl RandomWyHashState {
#[must_use]
#[inline]
pub fn new() -> Self {
#[cfg(feature = "fully_randomised_wyhash")]
use super::secret::make_secret;
#[cfg(not(feature = "fully_randomised_wyhash"))]
use super::constants::{WY0, WY1, WY2, WY3};
#[cfg(feature = "fully_randomised_wyhash")]
use super::secret::make_secret;

#[cfg(feature = "fully_randomised_wyhash")]
let secret = SECRET.get_or_init(|| make_secret(get_random_u64())).clone();
Expand Down
3 changes: 0 additions & 3 deletions src/legacy_final_v4/hasher.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// #[cfg(feature = "randomised_wyhash")]
// mod builder;

use core::hash::Hasher;

#[cfg(feature = "debug")]
Expand Down

0 comments on commit c672021

Please sign in to comment.