Skip to content

Commit 2abce2e

Browse files
committed
arc4random api for haiku
1 parent 0292b4e commit 2abce2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/haiku/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,10 @@ extern "C" {
20552055
>,
20562056
data: *mut ::c_void,
20572057
) -> ::c_int;
2058+
2059+
pub fn arc4random() -> u32;
2060+
pub fn arc4random_uniform(upper_bound: u32) -> u32;
2061+
pub fn arc4random_buf(buf: *mut ::c_void, n: ::size_t);
20582062
}
20592063

20602064
#[link(name = "gnu")]

0 commit comments

Comments
 (0)