|
13 | 13 | //! | Target | Target Triple | Implementation
|
14 | 14 | //! | ----------------- | ------------------ | --------------
|
15 | 15 | //! | Linux, Android | `*‑linux‑*` | [`getrandom`][1] system call if available, otherwise [`/dev/urandom`][2] after successfully polling `/dev/random` |
|
16 |
| -//! | Windows | `*‑pc‑windows‑*` | [`RtlGenRandom`][3] | |
17 |
| -//! | [Windows UWP][22] | `*‑uwp‑windows‑*` | [`BCryptGenRandom`][23] | |
| 16 | +//! | Windows | `*‑pc‑windows‑*` | [`BCryptGenRandom`][3] | |
18 | 17 | //! | macOS | `*‑apple‑darwin` | [`getentropy()`][19] if available, otherwise [`/dev/random`][20] (identical to `/dev/urandom`)
|
19 | 18 | //! | iOS | `*‑apple‑ios` | [`SecRandomCopyBytes`][4]
|
20 | 19 | //! | FreeBSD | `*‑freebsd` | [`getrandom()`][21] if available, otherwise [`kern.arandom`][5]
|
|
123 | 122 | //!
|
124 | 123 | //! [1]: http://man7.org/linux/man-pages/man2/getrandom.2.html
|
125 | 124 | //! [2]: http://man7.org/linux/man-pages/man4/urandom.4.html
|
126 |
| -//! [3]: https://docs.microsoft.com/en-us/windows/desktop/api/ntsecapi/nf-ntsecapi-rtlgenrandom |
| 125 | +//! [3]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom |
127 | 126 | //! [4]: https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc
|
128 | 127 | //! [5]: https://www.freebsd.org/cgi/man.cgi?query=random&sektion=4
|
129 | 128 | //! [6]: https://man.openbsd.org/getentropy.2
|
|
142 | 141 | //! [19]: https://www.unix.com/man-page/mojave/2/getentropy/
|
143 | 142 | //! [20]: https://www.unix.com/man-page/mojave/4/random/
|
144 | 143 | //! [21]: https://www.freebsd.org/cgi/man.cgi?query=getrandom&manpath=FreeBSD+12.0-stable
|
145 |
| -//! [22]: https://docs.microsoft.com/en-us/windows/uwp/ |
146 |
| -//! [23]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom |
147 | 144 |
|
148 | 145 | #![doc(
|
149 | 146 | html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
|
@@ -204,8 +201,6 @@ cfg_if! {
|
204 | 201 | } else if #[cfg(target_os = "vxworks")] {
|
205 | 202 | mod util_libc;
|
206 | 203 | #[path = "vxworks.rs"] mod imp;
|
207 |
| - } else if #[cfg(all(windows, target_vendor = "uwp"))] { |
208 |
| - #[path = "windows_uwp.rs"] mod imp; |
209 | 204 | } else if #[cfg(windows)] {
|
210 | 205 | #[path = "windows.rs"] mod imp;
|
211 | 206 | } else if #[cfg(all(target_arch = "x86_64", target_env = "sgx"))] {
|
|
0 commit comments