-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(csprng): cleanup conditional imports
- Loading branch information
1 parent
8504d79
commit ae832c1
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |