Skip to content

Commit ff9fa5a

Browse files
committed
android introduce arc4 api
1 parent 4fcfa55 commit ff9fa5a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/android.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,6 +2572,9 @@ addrinfo
25722572
af_alg_iv
25732573
alarm
25742574
android_set_abort_message
2575+
arc4random
2576+
arc4random_buf
2577+
arc4random_uniform
25752578
arphdr
25762579
arpreq
25772580
arpreq_old

src/unix/linux_like/android/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,10 @@ extern "C" {
28752875
>,
28762876
data: *mut ::c_void,
28772877
) -> ::c_int;
2878+
2879+
pub fn arc4random() -> u32;
2880+
pub fn arc4random_uniform(__upper_bound: u32) -> u32;
2881+
pub fn arc4random_buf(__buf: *mut ::c_void, __n: ::size_t);
28782882
}
28792883

28802884
cfg_if! {

0 commit comments

Comments
 (0)