From 1da939d5101ae75c2d2cd942c262212ff8184381 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 7 Mar 2019 20:17:02 +0000 Subject: [PATCH] Android can possibly support arc4random API. --- doc/os.rst | 2 +- src/build-data/os/android.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/os.rst b/doc/os.rst index d62f298e2f2..8b151b2d1e3 100644 --- a/doc/os.rst +++ b/doc/os.rst @@ -34,7 +34,7 @@ A summary of OS features as defined in ``src/build-data/os``. .. csv-table:: :header: "Feature", "a", "a", "c", "d", "d", "e", "f", "h", "h", "h", "i", "i", "l", "l", "m", "n", "n", "o", "q", "s", "u", "w" - "arc4random", " ", " ", " ", "X", "X", " ", "X", " ", " ", " ", " ", "X", " ", " ", " ", " ", "X", "X", " ", " ", " ", " " + "arc4random", " ", "X", " ", "X", "X", " ", "X", " ", " ", " ", " ", "X", " ", " ", " ", " ", "X", "X", " ", " ", " ", " " "cap_enter", " ", " ", " ", " ", " ", " ", "X", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " "clock_gettime", "X", "X", " ", " ", "X", " ", "X", "X", "X", "X", " ", " ", "X", " ", " ", " ", "X", "X", "X", "X", " ", " " "commoncrypto", " ", " ", " ", "X", " ", " ", " ", " ", " ", " ", " ", "X", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " diff --git a/src/build-data/os/android.txt b/src/build-data/os/android.txt index 3b0b0c09a67..a88b81ec2a0 100644 --- a/src/build-data/os/android.txt +++ b/src/build-data/os/android.txt @@ -6,6 +6,9 @@ posix1 posix_mlock clock_gettime +# arc4random_buf preferably backed-up by Chacha20 rather +# than RC4. can possibly be disabled by --without-os-feature=arc4random +arc4random dev_random # getauxval is available in Android NDK for min API 18 and in Crystax NDK