From 1e010d60397db706cd3d1c4d5701a2bced441aa8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 3 Sep 2014 15:53:11 -0700 Subject: [PATCH] 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. Bug: 17291075 Change-Id: Iaf6171c3ec65c39c1868364d5b35ea280e29a363 --- libc/bionic/ndk_cruft.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 0c7201986..45ead624e 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