chore(csprng): cleanup conditional imports

This commit is contained in:
Mayeul@Zama
2024-12-18 15:12:19 +01:00
committed by mayeul-zama
parent 8504d79180
commit ae832c158f

View File

@@ -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;