Skip to content

Commit

Permalink
std: use /dev/urandom on Redox
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Aug 12, 2024
1 parent 207ee73 commit 51743c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/std/src/sys/pal/unix/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ cfg_if::cfg_if! {
return res;
}

const PATH: &'static str = if cfg!(target_os = "redox") {
"rand:"
} else {
"/dev/urandom"
};
const PATH: &'static str = "/dev/urandom";

static FILE: OnceLock<File> = OnceLock::new();

Expand Down

0 comments on commit 51743c9

Please sign in to comment.