Skip to content

Commit

Permalink
Auto merge of #3270 - devnexen:android_getentropy, r=JohnTitor
Browse files Browse the repository at this point in the history
getentropy addition to android
  • Loading branch information
bors committed Jun 24, 2023
2 parents ea1e561 + a34a1ce commit b5e3a8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,9 @@ extern "C" {

pub fn gettid() -> ::pid_t;

/// Only available in API Version 28+
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int;

pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;

Expand Down

0 comments on commit b5e3a8a

Please sign in to comment.