Skip to content

Commit

Permalink
Rename "cpu" feature to "rdrand"
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Richey <[email protected]>
  • Loading branch information
josephlr committed May 29, 2020
1 parent 5130d5d commit e9d432e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ cfg_if! {
#[path = "windows.rs"] mod imp;
} else if #[cfg(all(target_arch = "x86_64", target_env = "sgx"))] {
#[path = "rdrand.rs"] mod imp;
} else if #[cfg(all(feature = "cpu",
} else if #[cfg(all(feature = "rdrand",
any(target_arch = "x86_64", target_arch = "x86")))] {
#[path = "rdrand.rs"] mod imp;
} else if #[cfg(feature = "custom")] {
Expand Down Expand Up @@ -219,4 +219,4 @@ pub fn getrandom(dest: &mut [u8]) -> Result<(), Error> {
#[cfg(test)]
mod test_common;
#[cfg(test)]
mod test_cpu;
mod test_rdrand;
2 changes: 1 addition & 1 deletion src/test_cpu.rs → src/test_rdrand.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// We only test the CPU-based RNG source on supported architectures.
// We only test the RDRAND-based RNG source on supported architectures.
#![cfg(any(target_arch = "x86_64", target_arch = "x86"))]

#[path = "rdrand.rs"]
Expand Down

0 comments on commit e9d432e

Please sign in to comment.