diff options
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/rand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c index b2e4544b7b1..4343d6ff6d9 100644 --- a/lib/libc/stdlib/rand.c +++ b/lib/libc/stdlib/rand.c @@ -1,4 +1,4 @@ -/* $NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $ */ +/* $NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)rand.c 8.1 (Berkeley) 6/14/93"; #else -__RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $"); +__RCSID("$NetBSD: rand.c,v 1.11 2012/06/24 15:26:03 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -44,7 +44,7 @@ __RCSID("$NetBSD: rand.c,v 1.10 2003/08/07 16:43:43 agc Exp $"); static u_long next = 1; int -rand() +rand(void) { /* LINTED integer overflow */ return (int)((next = next * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); |
