Skip to content

Commit b5e3a8a

Browse files
committed
Auto merge of #3270 - devnexen:android_getentropy, r=JohnTitor
getentropy addition to android
2 parents ea1e561 + a34a1ce commit b5e3a8a

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+2
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,7 +3534,9 @@ extern "C" {
35343534

35353535
pub fn gettid() -> ::pid_t;
35363536

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

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

0 commit comments

Comments
 (0)