|
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 | `*‑solaris` | [`getentropy`][11] |
16 |
| -//! | Illumos | `*‑illumos` | [`getrandom`][12] |
| 15 | +//! | Solaris | `*‑solaris` | [`getrandom`][11] (with `GRND_RANDOM`) |
| 16 | +//! | illumos | `*‑illumos` | [`getrandom`][12] |
17 | 17 | //! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`]
|
18 | 18 | //! | Redox | `*‑redox` | `/dev/urandom`
|
19 | 19 | //! | Haiku | `*‑haiku` | `/dev/urandom` (identical to `/dev/random`)
|
|
173 | 173 | //! [7]: https://man.openbsd.org/getentropy.2
|
174 | 174 | //! [8]: https://man.netbsd.org/sysctl.7
|
175 | 175 | //! [9]: https://leaf.dragonflybsd.org/cgi/web-man?command=getrandom
|
176 |
| -//! [11]: https://docs.oracle.com/cd/E88353_01/html/E37841/getentropy-2.html |
| 176 | +//! [11]: https://docs.oracle.com/cd/E88353_01/html/E37841/getrandom-2.html |
177 | 177 | //! [12]: https://illumos.org/man/2/getrandom
|
178 | 178 | //! [13]: https://github.com/emscripten-core/emscripten/pull/12240
|
179 | 179 | //! [14]: https://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.utilities/topic/r/random.html
|
@@ -238,7 +238,6 @@ cfg_if! {
|
238 | 238 | } else if #[cfg(any(
|
239 | 239 | target_os = "macos",
|
240 | 240 | target_os = "openbsd",
|
241 |
| - target_os = "solaris", |
242 | 241 | target_os = "vita",
|
243 | 242 | target_os = "emscripten",
|
244 | 243 | ))] {
|
@@ -302,6 +301,9 @@ cfg_if! {
|
302 | 301 | } else if #[cfg(any(target_os = "android", target_os = "linux"))] {
|
303 | 302 | mod util_libc;
|
304 | 303 | #[path = "linux_android.rs"] mod imp;
|
| 304 | + } else if #[cfg(target_os = "solaris")] { |
| 305 | + mod util_libc; |
| 306 | + #[path = "solaris.rs"] mod imp; |
305 | 307 | } else if #[cfg(target_os = "netbsd")] {
|
306 | 308 | mod util_libc;
|
307 | 309 | #[path = "netbsd.rs"] mod imp;
|
|
0 commit comments