Skip to content

Commit 6716cdd

Browse files
ian-h-chamberlainAzureMarker
authored andcommitted
Add getrandom call on horizon OS
(cherry picked from commit ab957c0)
1 parent ac40e64 commit 6716cdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/newlib/horizon/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,7 @@ extern "C" {
190190
value: *mut ::c_void,
191191
) -> ::c_int;
192192

193+
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
194+
193195
pub fn gethostid() -> ::c_long;
194196
}

0 commit comments

Comments
 (0)