OSDN Git Service

Attempt to use arc4random where getauxval(AT_RANDOM) is used.
authorJosh Gao <jmgao@google.com>
Sat, 25 Jun 2016 00:14:14 +0000 (17:14 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 1 Sep 2016 01:01:05 +0000 (18:01 -0700)
commit78a52f19bb207d1c736f1d5362e01f338d78645f
tree8c2a9be3f66f3f6e82c752683a4dab2619fa5eb2
parent5faef47e438d20600655e2f5ef473c2d63cbf2c0
Attempt to use arc4random where getauxval(AT_RANDOM) is used.

When arc4random can get entropy (which is true for basically everyone
but init on kernels that don't support getrandom), use it instead of
AT_RANDOM.

Bug: http://b/29622562
Change-Id: I6932803af2c477e65562ff531bd959f199fad1df
libc/Android.bp
libc/bionic/__libc_init_main_thread.cpp
libc/bionic/bionic_arc4random.cpp [new file with mode: 0644]
libc/bionic/setjmp_cookie.cpp
libc/private/bionic_arc4random.h [new file with mode: 0644]