Skip to content

Commit ab957c0

Browse files
ian-h-chamberlainMeziu
authored andcommitted
Add getrandom call on horizon OS
1 parent f2592e7 commit ab957c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/newlib/horizon/mod.rs

+2
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)