mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
chore(csprng): cleanup conditional imports
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user