summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2015-09-20 20:24:28 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2015-09-20 20:24:28 +0000
commitf98e0c9dd831748338a7856c0e98678ea8181d19 (patch)
treebe0fcdcc2e09e35233a813ebe7bb4842caab3e62 /lib/libc/stdlib/rand.c
parent55b6b759c89e6a44468ff442f11bc2a4a1775699 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/rand.c')
-rw-r--r--lib/libc/stdlib/rand.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c
index 4f4aa8dc2d91..b8871a2a4a46 100644
--- a/lib/libc/stdlib/rand.c
+++ b/lib/libc/stdlib/rand.c
@@ -111,14 +111,13 @@ static u_long next =
#endif
int
-rand()
+rand(void)
{
return (do_rand(&next));
}
void
-srand(seed)
-u_int seed;
+srand(u_int seed)
{
next = seed;
#ifndef USE_WEAK_SEEDING
@@ -136,7 +135,7 @@ u_int seed;
* data from the kernel.
*/
void
-sranddev()
+sranddev(void)
{
int mib[2];
size_t len;