Skip to content

Commit

Permalink
Improve error message for fallback RNG failure
Browse files Browse the repository at this point in the history
  • Loading branch information
marti4d committed May 16, 2022
1 parent 3de6c2c commit aba3454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

0 comments on commit aba3454

Please sign in to comment.