Skip to content

Commit

Permalink
Add getrandom call on horizon OS
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain authored and Meziu committed Feb 1, 2022
1 parent f2592e7 commit ab957c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,7 @@ extern "C" {
value: *mut ::c_void,
) -> ::c_int;

pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

pub fn gethostid() -> ::c_long;
}

0 comments on commit ab957c0

Please sign in to comment.