mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Improve error message for fallback RNG failure
This commit is contained in:
parent
3de6c2ca33
commit
aba3454aa1
@ -83,5 +83,5 @@ fn fallback_rng() -> Result<(u64, u64), io::Error> {
|
||||
/// We can't use RtlGenRandom with UWP, so there is no fallback
|
||||
#[cfg(target_vendor = "uwp")]
|
||||
fn fallback_rng() -> Result<(u64, u64), io::Error> {
|
||||
Err(io::const_io_error!(io::ErrorKind::Unsupported, "unsupported on UWP"))
|
||||
Err(io::const_io_error!(io::ErrorKind::Unsupported, "RtlGenRandom() not supported on UWP"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user