Skip to content

Commit

Permalink
Add getentropy for RTEMS
Browse files Browse the repository at this point in the history
RTEMS provides the getentropy function.
Use this for providing random data.
  • Loading branch information
thesummer committed Oct 16, 2024
1 parent 9618da7 commit a43a89f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/random/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cfg_if::cfg_if! {
))] {
mod arc4random;
pub use arc4random::fill_bytes;
} else if #[cfg(target_os = "emscripten")] {
} else if #[cfg(any(target_os = "emscripten", target_os = "rtems"))] {
mod getentropy;
pub use getentropy::fill_bytes;
} else if #[cfg(target_os = "espidf")] {
Expand Down

0 comments on commit a43a89f

Please sign in to comment.