Browse Source

zap __arc4_getbyte(), it was only used by the old malloc; ok millert@

kurt@
OPENBSD_4_5
otto 16 years ago
parent
commit
0f36e15025
1 changed files with 1 additions and 14 deletions
  1. +1
    -14
      src/lib/libc/crypt/arc4random.c

+ 1
- 14
src/lib/libc/crypt/arc4random.c View File

@ -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 <dm@uun.org>
@ -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)
{


Loading…
Cancel
Save