From bd27a8b4af59e4078144f25953828061b6fead8b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 16 May 2014 14:43:00 -0700 Subject: [PATCH] Remove dead code. This doesn't exist upstream. Really we should upgrade to the current arc4random, but that's a bigger job for another day. Bug: 11156955 Change-Id: If6cd41b79139c64c17e81999e246cf4f00882ce8 --- libc/bionic/arc4random.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libc/bionic/arc4random.c b/libc/bionic/arc4random.c index eac4b0c6d..687030b86 100644 --- a/libc/bionic/arc4random.c +++ b/libc/bionic/arc4random.c @@ -171,19 +171,6 @@ arc4_getbyte(void) return (rs.s[(si + sj) & 0xff]); } -u_int8_t -__arc4_getbyte(void) -{ - u_int8_t val; - - _ARC4_LOCK(); - if (--arc4_count == 0 || !rs_initialized) - arc4_stir(); - val = arc4_getbyte(); - _ARC4_UNLOCK(); - return val; -} - static inline u_int32_t arc4_getword(void) {