Skip to content

Commit

Permalink
chore(csprng): cleanup conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeul-zama committed Dec 19, 2024
1 parent 8504d79 commit ae832c1
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions tfhe-csprng/src/generators/default.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
#[cfg(all(target_arch = "x86_64", not(feature = "software-prng")))]
use super::AesniRandomGenerator;
pub type DefaultRandomGenerator = super::AesniRandomGenerator;
#[cfg(all(target_arch = "aarch64", not(feature = "software-prng")))]
use super::NeonAesRandomGenerator;
pub type DefaultRandomGenerator = super::NeonAesRandomGenerator;
#[cfg(any(
feature = "software-prng",
not(any(target_arch = "x86_64", target_arch = "aarch64"))
))]
use super::SoftwareRandomGenerator;

#[cfg(all(target_arch = "x86_64", not(feature = "software-prng")))]
pub type DefaultRandomGenerator = AesniRandomGenerator;
#[cfg(all(target_arch = "aarch64", not(feature = "software-prng")))]
pub type DefaultRandomGenerator = NeonAesRandomGenerator;
#[cfg(any(
feature = "software-prng",
not(any(target_arch = "x86_64", target_arch = "aarch64"))
))]
pub type DefaultRandomGenerator = SoftwareRandomGenerator;
pub type DefaultRandomGenerator = super::SoftwareRandomGenerator;

0 comments on commit ae832c1

Please sign in to comment.