summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/random.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-07 00:38:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-07 00:38:34 +0000
commit6199f15e3e0651e8399ad97e919a96d69d128ee2 (patch)
treecde8dbb44682b9bafafa3ec82a63352162d5cf59 /sys/lib/libkern/random.c
parentf8b1d50fcd985a3171e1d491c63c553aff62c2a7 (diff)
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/random.c')
-rw-r--r--sys/lib/libkern/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/lib/libkern/random.c b/sys/lib/libkern/random.c
index 44f95b8c096..258a9df94fb 100644
--- a/sys/lib/libkern/random.c
+++ b/sys/lib/libkern/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.6 2003/06/02 23:28:08 millert Exp $ */
+/* $OpenBSD: random.c,v 1.7 2004/08/07 00:38:33 deraadt Exp $ */
/* $NetBSD: random.c,v 1.2 1994/10/26 06:42:42 cgd Exp $ */
/*-
@@ -44,9 +44,9 @@
u_long _randseed = 1;
u_long
-random()
+random(void)
{
- register long x, hi, lo, t;
+ long x, hi, lo, t;
/*
* Compute x[n + 1] = (7^5 * x[n]) mod (2^31 - 1).