summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/crypt/arc4random.c15
1 files changed, 1 insertions, 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 @@
1/* $OpenBSD: arc4random.c,v 1.19 2008/06/04 00:50:23 djm Exp $ */ 1/* $OpenBSD: arc4random.c,v 1.20 2008/10/03 18:46:04 otto Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996, David Mazieres <dm@uun.org> 4 * Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -135,19 +135,6 @@ arc4_getbyte(void)
135 return (rs.s[(si + sj) & 0xff]); 135 return (rs.s[(si + sj) & 0xff]);
136} 136}
137 137
138u_int8_t
139__arc4_getbyte(void)
140{
141 u_int8_t val;
142
143 _ARC4_LOCK();
144 if (--arc4_count == 0 || !rs_initialized)
145 arc4_stir();
146 val = arc4_getbyte();
147 _ARC4_UNLOCK();
148 return val;
149}
150
151static inline u_int32_t 138static inline u_int32_t
152arc4_getword(void) 139arc4_getword(void)
153{ 140{