summaryrefslogtreecommitdiff
path: root/libc/stdlib/arc4random.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-17 17:57:34 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-17 17:57:34 +0000
commit56c3fad78406bd5ea1142b755c81feee71b1987e (patch)
tree50bf6670b9b7c63070e86a115b393b466638579c /libc/stdlib/arc4random.c
parent3893e7e397b3932a3e6e604d2e7a82b260a1133e (diff)
correct prototypes and 1 reloc less
Diffstat (limited to 'libc/stdlib/arc4random.c')
-rw-r--r--libc/stdlib/arc4random.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c
index 789bb1713..b0b3b39ac 100644
--- a/libc/stdlib/arc4random.c
+++ b/libc/stdlib/arc4random.c
@@ -170,8 +170,9 @@ arc4_getword(as)
return val;
}
+libc_hidden_proto(arc4random_stir)
void
-arc4random_stir()
+arc4random_stir(void)
{
if (!rs_initialized) {
arc4_init(&rs);
@@ -179,11 +180,10 @@ arc4random_stir()
}
arc4_stir(&rs);
}
+libc_hidden_def(arc4random_stir)
void
-arc4random_addrandom(dat, datlen)
- u_char *dat;
- int datlen;
+arc4random_addrandom(u_char *dat, int datlen)
{
if (!rs_initialized)
arc4random_stir();
@@ -191,7 +191,7 @@ arc4random_addrandom(dat, datlen)
}
u_int32_t
-arc4random()
+arc4random(void)
{
if (!rs_initialized)
arc4random_stir();