diff --git a/libc-test/semver/solarish.txt b/libc-test/semver/solarish.txt index 8f51b3ceca6fa..a17ec146bb456 100644 --- a/libc-test/semver/solarish.txt +++ b/libc-test/semver/solarish.txt @@ -7,6 +7,9 @@ IP_PKTINFO IP_TOS IP_TTL PIPE_BUF +arc4random +arc4random_buf +arc4random_uniform bind in6_pktinfo in_pktinfo diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index f0195536bc6e2..a2db25aa1a221 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -3038,6 +3038,10 @@ extern "C" { pub fn __major(version: ::c_int, devnum: ::dev_t) -> ::major_t; pub fn __minor(version: ::c_int, devnum: ::dev_t) -> ::minor_t; pub fn __makedev(version: ::c_int, majdev: ::major_t, mindev: ::minor_t) -> ::dev_t; + + pub fn arc4random() -> u32; + pub fn arc4random_buf(buf: *mut ::c_void, nbytes: ::size_t); + pub fn arc4random_uniform(upper_bound: u32) -> u32; } #[link(name = "sendfile")]