|
22 | 22 | //! | Solaris, illumos | [`getrandom`][9] system call if available, otherwise [`/dev/random`][10] |
23 | 23 | //! | Fuchsia OS | [`cprng_draw`][11] |
24 | 24 | //! | Redox | [`rand:`][12] |
25 | | -//! | CloudABI | [`random_get`][13] |
| 25 | +//! | CloudABI | [`cloudabi_sys_random_get`][13] |
26 | 26 | //! | Haiku | `/dev/random` (identical to `/dev/urandom`) |
27 | 27 | //! | SGX, UEFI | [RDRAND][18] |
28 | 28 | //! | Web browsers | [`Crypto.getRandomValues`][14] (see [Support for WebAssembly and ams.js][14]) |
|
99 | 99 | //! |
100 | 100 | //! [1]: http://man7.org/linux/man-pages/man2/getrandom.2.html |
101 | 101 | //! [2]: http://man7.org/linux/man-pages/man4/urandom.4.html |
102 | | -//! [3]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx |
| 102 | +//! [3]: https://docs.microsoft.com/en-us/windows/desktop/api/ntsecapi/nf-ntsecapi-rtlgenrandom |
103 | 103 | //! [4]: https://developer.apple.com/documentation/security/1399291-secrandomcopybytes?language=objc |
104 | 104 | //! [5]: https://www.freebsd.org/cgi/man.cgi?query=random&sektion=4 |
105 | 105 | //! [6]: https://man.openbsd.org/getentropy.2 |
106 | 106 | //! [7]: http://netbsd.gw.com/cgi-bin/man-cgi?random+4+NetBSD-current |
107 | 107 | //! [8]: https://leaf.dragonflybsd.org/cgi/web-man?command=random§ion=4 |
108 | 108 | //! [9]: https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html |
109 | 109 | //! [10]: https://docs.oracle.com/cd/E86824_01/html/E54777/random-7d.html |
110 | | -//! [11]: https://fuchsia.googlesource.com/zircon/+/HEAD/docs/syscalls/cprng_draw.md |
| 110 | +//! [11]: https://fuchsia.googlesource.com/fuchsia/+/master/zircon/docs/syscalls/cprng_draw.md |
111 | 111 | //! [12]: https://github.com/redox-os/randd/blob/master/src/main.rs |
112 | | -//! [13]: https://github.com/NuxiNL/cloudabi/blob/v0.20/cloudabi.txt#L1826 |
| 112 | +//! [13]: https://github.com/nuxinl/cloudabi#random_get |
113 | 113 | //! [14]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues |
114 | 114 | //! [15]: https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback |
115 | 115 | //! [16]: #support-for-webassembly-and-amsjs |
@@ -153,11 +153,11 @@ macro_rules! mod_use { |
153 | 153 | }; |
154 | 154 | } |
155 | 155 |
|
| 156 | +// These targets use std anyway, so we use the std declarations. |
156 | 157 | #[cfg(any( |
157 | 158 | feature = "std", |
158 | 159 | windows, |
159 | 160 | unix, |
160 | | - target_os = "cloudabi", |
161 | 161 | target_os = "redox", |
162 | 162 | target_arch = "wasm32", |
163 | 163 | ))] |
|
0 commit comments