Commit a64612f
Add arc4random and arc4random_buf to NuttX
* Declare `arc4random` and `arc4random_buf` as extern "C" functions in the NuttX module
* Enable access to system-provided random number generation for NuttX targets
* Aligns NuttX FFI with other Unix platforms that expose these functions
This change allows Rust code targeting NuttX to use `arc4random` and `arc4random_buf` for secure random number generation, improving compatibility and feature parity with other targets.
(backport <rust-lang#4464>)
(cherry picked from commit f8e4746)1 parent b697133 commit a64612f
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
594 | 596 | | |
0 commit comments