Improve error message for fallback RNG failure

This commit is contained in:
Chris Martin 2022-05-16 13:49:12 -04:00
parent 3de6c2ca33
commit aba3454aa1

View File

@ -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"))
}