diff options
author | Elliott Hughes <enh@google.com> | 2014-09-08 10:25:33 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-09-08 10:47:45 -0700 |
commit | 51c8355d5cf4b83ccd2ad250ca4c61a616356c2b (patch) | |
tree | 7b4a37dd63770b59bf569f203cf9fe2423631e11 /libc/bionic | |
parent | 47ed03f70c6c9addc7f05e4ee4dc71c96d215105 (diff) | |
download | bionic-51c8355d5cf4b83ccd2ad250ca4c61a616356c2b.zip bionic-51c8355d5cf4b83ccd2ad250ca4c61a616356c2b.tar.gz bionic-51c8355d5cf4b83ccd2ad250ca4c61a616356c2b.tar.bz2 |
Add arc4random_addrandom binary compatibility.
This was in <stdlib.h> in older releases. It's no longer used, but we can
preserve backwards compatibility by making it a no-op.
Bug: 16205834
Change-Id: Idde7b46df4f253e39675600bcf82352879a716e7
Diffstat (limited to 'libc/bionic')
-rw-r--r-- | libc/bionic/ndk_cruft.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 7879b7f..829e8f3 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -308,6 +308,11 @@ extern "C" void arc4random_stir(void) { // The current implementation stirs itself as needed. } +// This was removed from BSD. +extern "C" void arc4random_addrandom(unsigned char*, int) { + // The current implementation adds randomness as needed. +} + // Old versions of the NDK did not export malloc_usable_size, but did // export dlmalloc_usable_size. We are moving away from dlmalloc in L // so make this call malloc_usable_size. |