Skip to content

Commit aba3454

Browse files
committed
Improve error message for fallback RNG failure
1 parent 3de6c2c commit aba3454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/rand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ fn fallback_rng() -> Result<(u64, u64), io::Error> {
8383
/// We can't use RtlGenRandom with UWP, so there is no fallback
8484
#[cfg(target_vendor = "uwp")]
8585
fn fallback_rng() -> Result<(u64, u64), io::Error> {
86-
Err(io::const_io_error!(io::ErrorKind::Unsupported, "unsupported on UWP"))
86+
Err(io::const_io_error!(io::ErrorKind::Unsupported, "RtlGenRandom() not supported on UWP"))
8787
}

0 commit comments

Comments
 (0)