diff options
author | Elliott Hughes <enh@google.com> | 2014-09-03 15:53:11 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-09-03 16:30:22 -0700 |
commit | 5dea47221a116aa87b0c286230c944ed6b629636 (patch) | |
tree | 9bd6b42efb96dec7fc3db723ac45330f03bd0bee /libc/bionic/ndk_cruft.cpp | |
parent | 450aaa018df19464cb4e01ea3059a2a075ebde52 (diff) | |
download | bionic-5dea47221a116aa87b0c286230c944ed6b629636.zip bionic-5dea47221a116aa87b0c286230c944ed6b629636.tar.gz bionic-5dea47221a116aa87b0c286230c944ed6b629636.tar.bz2 |
Add back a dummy arc4random_stir for compatibility.
The current arc4random implementation stirs itself as needed, but we
need to keep an arc4random_stir symbol around for binary compatibility.
(cherry-pick of 1e010d60397db706cd3d1c4d5701a2bced441aa8.)
Bug: 17291075
Change-Id: Iaf6171c3ec65c39c1868364d5b35ea280e29a363
Diffstat (limited to 'libc/bionic/ndk_cruft.cpp')
-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 0c72019..45ead62 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -303,4 +303,9 @@ extern "C" char* index(const char* str, int ch) { return strchr(str, ch); } +// This was removed from BSD. +extern "C" void arc4random_stir(void) { + // The current implementation stirs itself as needed. +} + #endif |