diff --git a/Cargo.toml b/Cargo.toml index bdb455031b839d843652c4d1efe6e6dd3c629461..4205858e25b15da5654e0a283d3602e6dc9a6063 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -282,7 +282,7 @@ untrusted = "0.6.2" [target.'cfg(target_os = "linux")'.dependencies] libc = { version = "0.2.34" } -[target.'cfg(any(target_os = "redox", all(unix, not(any(target_os = "macos", target_os = "ios")))))'.dependencies] +[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))'.dependencies] lazy_static = "1.2" # Keep this in sync with `[dependencies]` in pregenerate_asm/Cargo.toml. diff --git a/src/rand.rs b/src/rand.rs index d5434f655e5956fe7dab6bceceb43e7c83b67e42..265244b69fa76e3b86fdfeae8eeefdba2f856fab 100644 --- a/src/rand.rs +++ b/src/rand.rs @@ -193,7 +193,7 @@ mod urandom { pub fn fill(dest: &mut [u8]) -> Result<(), error::Unspecified> { #[cfg(target_os = "redox")] static RANDOM_PATH: &str = "rand:"; - #[cfg(unix)] + #[cfg(all(unix, not(target_os = "redox")))] static RANDOM_PATH: &str = "/dev/urandom"; lazy_static! {