diff options
| author | Chris Martin <marti4d@live.ca> | 2022-05-16 13:49:12 -0400 |
|---|---|---|
| committer | Chris Martin <marti4d@live.ca> | 2022-05-16 13:49:12 -0400 |
| commit | aba3454aa136bce4f65978e5bf50683380fbddf3 (patch) | |
| tree | 86a051bcc2269de1d8ee920d7a6f23a7302c34e1 /library/std/src/sys | |
| parent | 3de6c2ca33f45b283ebb177bb29c0c756c6b75cb (diff) | |
| download | rust-aba3454aa136bce4f65978e5bf50683380fbddf3.tar.gz rust-aba3454aa136bce4f65978e5bf50683380fbddf3.zip | |
Improve error message for fallback RNG failure
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/windows/rand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/rand.rs b/library/std/src/sys/windows/rand.rs index 836fc148986..22e024d8552 100644 --- a/library/std/src/sys/windows/rand.rs +++ b/library/std/src/sys/windows/rand.rs @@ -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")) } |
