File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424//! | Fuchsia OS | `*‑fuchsia` | [`cprng_draw`][11]
2525//! | Redox | `*‑redox` | [`/dev/urandom`][12]
2626//! | Haiku | `*‑haiku` | `/dev/random` (identical to `/dev/urandom`)
27+ //! | Hermit | `x86_64-*-hermit` | [`RDRAND`][18]
2728//! | SGX | `x86_64‑*‑sgx` | [RDRAND][18]
2829//! | VxWorks | `*‑wrs‑vxworks‑*` | `randABytes` after checking entropy pool initialization with `randSecure`
2930//! | Emscripten | `*‑emscripten` | `/dev/random` (identical to `/dev/urandom`)
@@ -203,6 +204,8 @@ cfg_if! {
203204 } else if #[ cfg( target_os = "vxworks" ) ] {
204205 mod util_libc;
205206 #[ path = "vxworks.rs" ] mod imp;
207+ } else if #[ cfg( all( target_arch = "x86_64" , target_os = "hermit" ) ) ] {
208+ #[ path = "rdrand.rs" ] mod imp;
206209 } else if #[ cfg( windows) ] {
207210 #[ path = "windows.rs" ] mod imp;
208211 } else if #[ cfg( all( target_arch = "x86_64" , target_env = "sgx" ) ) ] {
You can’t perform that action at this time.
0 commit comments