Skip to content

Commit 43a0d7b

Browse files
committed
Add rdrand backend for Motor OS
1 parent 2e35077 commit 43a0d7b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ check-cfg = [
100100
'cfg(getrandom_test_linux_without_fallback)',
101101
'cfg(getrandom_test_netbsd_fallback)',
102102
'cfg(target_os, values("cygwin"))', # TODO(MSRV 1.86): Remove this.
103+
'cfg(target_os, values("motor"))',
103104
]
104105

105106
[lints.rust]

src/backends.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ cfg_if! {
149149
} else if #[cfg(target_os = "hermit")] {
150150
mod hermit;
151151
pub use hermit::*;
152+
} else if #[cfg(all(target_arch = "x86_64", target_os = "motor"))] {
153+
mod rdrand;
154+
pub use rdrand::*;
152155
} else if #[cfg(target_os = "vxworks")] {
153156
mod vxworks;
154157
pub use vxworks::*;

0 commit comments

Comments
 (0)