|
24 | 24 | //! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`] |
25 | 25 | //! | Redox | `*‑redox` | `/dev/urandom` |
26 | 26 | //! | Haiku | `*‑haiku` | `/dev/urandom` (identical to `/dev/random`) |
27 | | -//! | Hermit | `x86_64-*-hermit` | [`RDRAND`] |
| 27 | +//! | Hermit | `*-hermit` | [`sys_read_entropy`] |
28 | 28 | //! | SGX | `x86_64‑*‑sgx` | [`RDRAND`] |
29 | 29 | //! | VxWorks | `*‑wrs‑vxworks‑*` | `randABytes` after checking entropy pool initialization with `randSecure` |
30 | 30 | //! | ESP-IDF | `*‑espidf` | [`esp_fill_random`] |
|
179 | 179 | //! [`module`]: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-js-imports/module.html |
180 | 180 | //! [CommonJS modules]: https://nodejs.org/api/modules.html |
181 | 181 | //! [ES modules]: https://nodejs.org/api/esm.html |
| 182 | +//! [`sys_read_entropy`]: https://hermitcore.github.io/libhermit-rs/hermit/fn.sys_read_entropy.html |
182 | 183 |
|
183 | 184 | #![doc( |
184 | 185 | html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png", |
@@ -245,8 +246,8 @@ cfg_if! { |
245 | 246 | #[path = "openbsd.rs"] mod imp; |
246 | 247 | } else if #[cfg(all(target_arch = "wasm32", target_os = "wasi"))] { |
247 | 248 | #[path = "wasi.rs"] mod imp; |
248 | | - } else if #[cfg(all(target_arch = "x86_64", target_os = "hermit"))] { |
249 | | - #[path = "rdrand.rs"] mod imp; |
| 249 | + } else if #[cfg(target_os = "hermit")] { |
| 250 | + #[path = "hermit.rs"] mod imp; |
250 | 251 | } else if #[cfg(target_os = "vxworks")] { |
251 | 252 | mod util_libc; |
252 | 253 | #[path = "vxworks.rs"] mod imp; |
|
0 commit comments