From 7dc9bdc32466f44e870a8425e3fce72b11cefd93 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" <69792125+mayeul-zama@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:12:19 +0100 Subject: [PATCH] chore(csprng): cleanup conditional imports --- tfhe-csprng/src/generators/default.rs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tfhe-csprng/src/generators/default.rs b/tfhe-csprng/src/generators/default.rs index 1e3e8f27bf..4914b37efd 100644 --- a/tfhe-csprng/src/generators/default.rs +++ b/tfhe-csprng/src/generators/default.rs @@ -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;