Skip to content

Commit a43a89f

Browse files
committed
Add getentropy for RTEMS
RTEMS provides the getentropy function. Use this for providing random data.
1 parent 9618da7 commit a43a89f

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/random

1 file changed

+1
-1
lines changed

library/std/src/sys/random/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cfg_if::cfg_if! {
2222
))] {
2323
mod arc4random;
2424
pub use arc4random::fill_bytes;
25-
} else if #[cfg(target_os = "emscripten")] {
25+
} else if #[cfg(any(target_os = "emscripten", target_os = "rtems"))] {
2626
mod getentropy;
2727
pub use getentropy::fill_bytes;
2828
} else if #[cfg(target_os = "espidf")] {

0 commit comments

Comments
 (0)