diff options
author | otto <> | 2008-10-03 18:46:04 +0000 |
---|---|---|
committer | otto <> | 2008-10-03 18:46:04 +0000 |
commit | 896595db3f4cfbe5a7b82a14a042df3281f544e7 (patch) | |
tree | f3eff5e5a4a057a858750d72bb6b8256b71b7fd3 /src/lib/libc/crypt | |
parent | 5fe1692dea0332215b3fa1426d3b5365fe537f83 (diff) | |
download | openbsd-896595db3f4cfbe5a7b82a14a042df3281f544e7.tar.gz openbsd-896595db3f4cfbe5a7b82a14a042df3281f544e7.tar.bz2 openbsd-896595db3f4cfbe5a7b82a14a042df3281f544e7.zip |
zap __arc4_getbyte(), it was only used by the old malloc; ok millert@
kurt@
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r-- | src/lib/libc/crypt/arc4random.c | 15 |
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 | ||
138 | u_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 | |||
151 | static inline u_int32_t | 138 | static inline u_int32_t |
152 | arc4_getword(void) | 139 | arc4_getword(void) |
153 | { | 140 | { |