Skip to content

Commit

Permalink
Merge GH #1851 Use arc4random on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Mar 9, 2019
2 parents 9252df3 + 1da939d commit 2920510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 2920510

Please sign in to comment.