|
12 | 12 | //! | OpenBSD | `*‑openbsd` | [`getentropy`][7]
|
13 | 13 | //! | NetBSD | `*‑netbsd` | [`getrandom`][16] if available, otherwise [`kern.arandom`][8]
|
14 | 14 | //! | Dragonfly BSD | `*‑dragonfly` | [`getrandom`][9]
|
15 |
| -//! | Solaris, illumos | `*‑solaris`, `*‑illumos` | [`getrandom`][11] if available, otherwise [`/dev/random`][12] |
| 15 | +//! | Solaris | `*‑solaris` | [`getrandom`][11] |
| 16 | +//! | Illumos | `*‑illumos` | [`getrandom`][12] |
16 | 17 | //! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`]
|
17 | 18 | //! | Redox | `*‑redox` | `/dev/urandom`
|
18 | 19 | //! | Haiku | `*‑haiku` | `/dev/urandom` (identical to `/dev/random`)
|
|
25 | 26 | //! | WASI | `wasm32‑wasi` | [`random_get`]
|
26 | 27 | //! | Web Browser and Node.js | `wasm*‑*‑unknown` | [`Crypto.getRandomValues`] if available, then [`crypto.randomFillSync`] if on Node.js, see [WebAssembly support]
|
27 | 28 | //! | SOLID | `*-kmc-solid_*` | `SOLID_RNG_SampleRandomBytes`
|
28 |
| -//! | Nintendo 3DS | `armv6k-nintendo-3ds` | [`getrandom`][1] |
| 29 | +//! | Nintendo 3DS | `armv6k-nintendo-3ds` | [`getrandom`][18] |
29 | 30 | //! | PS Vita | `armv7-sony-vita-newlibeabihf` | [`getentropy`][13]
|
30 | 31 | //! | QNX Neutrino | `*‑nto-qnx*` | [`/dev/urandom`][14] (identical to `/dev/random`)
|
31 | 32 | //! | AIX | `*-ibm-aix` | [`/dev/urandom`][15]
|
|
177 | 178 | //! [8]: https://man.netbsd.org/sysctl.7
|
178 | 179 | //! [9]: https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom
|
179 | 180 | //! [11]: https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html
|
180 |
| -//! [12]: https://docs.oracle.com/cd/E86824_01/html/E54777/random-7d.html |
| 181 | +//! [12]: https://illumos.org/man/2/getrandom |
181 | 182 | //! [13]: https://github.com/emscripten-core/emscripten/pull/12240
|
182 | 183 | //! [14]: https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.utilities/topic/r/random.html
|
183 | 184 | //! [15]: https://www.ibm.com/docs/en/aix/7.3?topic=files-random-urandom-devices
|
184 | 185 | //! [16]: https://man.netbsd.org/getrandom.2
|
185 | 186 | //! [17]: https://www.gnu.org/software/libc/manual/html_mono/libc.html#index-getrandom
|
| 187 | +//! [18]: https://github.com/rust3ds/shim-3ds/commit/b01d2568836dea2a65d05d662f8e5f805c64389d |
186 | 188 | //!
|
187 | 189 | //! [`BCryptGenRandom`]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
|
188 | 190 | //! [`Crypto.getRandomValues`]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues
|
@@ -241,6 +243,8 @@ cfg_if! {
|
241 | 243 | target_os = "dragonfly",
|
242 | 244 | target_os = "freebsd",
|
243 | 245 | target_os = "hurd",
|
| 246 | + target_os = "illumos", |
| 247 | + target_os = "solaris", |
244 | 248 | // Check for target_arch = "arm" to only include the 3DS. Does not
|
245 | 249 | // include the Nintendo Switch (which is target_arch = "aarch64").
|
246 | 250 | all(target_os = "horizon", target_arch = "arm"),
|
@@ -294,11 +298,7 @@ cfg_if! {
|
294 | 298 | } else if #[cfg(any(target_os = "android", target_os = "linux"))] {
|
295 | 299 | mod util_libc;
|
296 | 300 | #[path = "linux_android.rs"] mod imp;
|
297 |
| - } else if #[cfg(any(target_os = "illumos", target_os = "solaris"))] { |
298 |
| - mod util_libc; |
299 |
| - mod use_file; |
300 |
| - #[path = "solaris_illumos.rs"] mod imp; |
301 |
| - } else if #[cfg(target_os = "netbsd")] { |
| 301 | + } else if #[cfg(target_os = "freebsd")] { |
302 | 302 | mod util_libc;
|
303 | 303 | #[path = "netbsd.rs"] mod imp;
|
304 | 304 | } else if #[cfg(target_os = "fuchsia")] {
|
|
0 commit comments