Skip to content

Commit

Permalink
Android can possibly support arc4random API.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 7, 2019
1 parent 9252df3 commit 1da939d
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 1da939d

Please sign in to comment.