Skip to content

Commit 51743c9

Browse files
committed
std: use /dev/urandom on Redox
1 parent 207ee73 commit 51743c9

File tree

1 file changed

+1
-5
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-5
lines changed

library/std/src/sys/pal/unix/rand.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ cfg_if::cfg_if! {
4848
return res;
4949
}
5050

51-
const PATH: &'static str = if cfg!(target_os = "redox") {
52-
"rand:"
53-
} else {
54-
"/dev/urandom"
55-
};
51+
const PATH: &'static str = "/dev/urandom";
5652

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

0 commit comments

Comments
 (0)