Skip to content

Commit

Permalink
arc4random api for haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 27, 2024
1 parent 0292b4e commit 2abce2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,10 @@ extern "C" {
>,
data: *mut ::c_void,
) -> ::c_int;

pub fn arc4random() -> u32;
pub fn arc4random_uniform(upper_bound: u32) -> u32;
pub fn arc4random_buf(buf: *mut ::c_void, n: ::size_t);
}

#[link(name = "gnu")]
Expand Down

0 comments on commit 2abce2e

Please sign in to comment.