Skip to content

Commit e9d432e

Browse files
committed
Rename "cpu" feature to "rdrand"
Signed-off-by: Joe Richey <[email protected]>
1 parent 5130d5d commit e9d432e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ cfg_if! {
183183
#[path = "windows.rs"] mod imp;
184184
} else if #[cfg(all(target_arch = "x86_64", target_env = "sgx"))] {
185185
#[path = "rdrand.rs"] mod imp;
186-
} else if #[cfg(all(feature = "cpu",
186+
} else if #[cfg(all(feature = "rdrand",
187187
any(target_arch = "x86_64", target_arch = "x86")))] {
188188
#[path = "rdrand.rs"] mod imp;
189189
} else if #[cfg(feature = "custom")] {
@@ -219,4 +219,4 @@ pub fn getrandom(dest: &mut [u8]) -> Result<(), Error> {
219219
#[cfg(test)]
220220
mod test_common;
221221
#[cfg(test)]
222-
mod test_cpu;
222+
mod test_rdrand;

src/test_cpu.rs renamed to src/test_rdrand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// We only test the CPU-based RNG source on supported architectures.
1+
// We only test the RDRAND-based RNG source on supported architectures.
22
#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]
33

44
#[path = "rdrand.rs"]

0 commit comments

Comments
 (0)