Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android can possibly support arc4random API. #1851

Merged
merged 1 commit into from
Mar 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
Expand Down
3 changes: 3 additions & 0 deletions src/build-data/os/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down