about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorChris Martin <marti4d@live.ca>2022-05-16 13:49:12 -0400
committerChris Martin <marti4d@live.ca>2022-05-16 13:49:12 -0400
commitaba3454aa136bce4f65978e5bf50683380fbddf3 (patch)
tree86a051bcc2269de1d8ee920d7a6f23a7302c34e1 /library/std/src/sys
parent3de6c2ca33f45b283ebb177bb29c0c756c6b75cb (diff)
downloadrust-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.rs2
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"))
 }