From 896595db3f4cfbe5a7b82a14a042df3281f544e7 Mon Sep 17 00:00:00 2001 From: otto <> Date: Fri, 3 Oct 2008 18:46:04 +0000 Subject: zap __arc4_getbyte(), it was only used by the old malloc; ok millert@ kurt@ --- src/lib/libc/crypt/arc4random.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 22b8d1f3c1..e921e4b7c7 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc4random.c,v 1.19 2008/06/04 00:50:23 djm Exp $ */ +/* $OpenBSD: arc4random.c,v 1.20 2008/10/03 18:46:04 otto Exp $ */ /* * Copyright (c) 1996, David Mazieres @@ -135,19 +135,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) { -- cgit v1.2.3-55-g6feb