std: use /scheme/rand
on Redox
This commit is contained in:
parent
207ee73b7a
commit
99c0d768b0
@ -49,7 +49,7 @@ fn read(bytes: &mut [u8]) -> crate::io::Result<()> {
|
||||
}
|
||||
|
||||
const PATH: &'static str = if cfg!(target_os = "redox") {
|
||||
"rand:"
|
||||
"/scheme/rand"
|
||||
} else {
|
||||
"/dev/urandom"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user