From 4b28d29d284ed9cbe0a9ef96b9dc5ca89e66c41d Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Fri, 25 Oct 2002 11:32:38 +0000 Subject: [PATCH] type fix: replaced a couple of longs with ints (as they should be) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1648 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdlib/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/libroot/posix/stdlib/random.c b/src/kernel/libroot/posix/stdlib/random.c index a9c84b9081..60c7339aa9 100644 --- a/src/kernel/libroot/posix/stdlib/random.c +++ b/src/kernel/libroot/posix/stdlib/random.c @@ -256,7 +256,7 @@ static inline long good_rand(long x) * for default usage relies on values produced by this routine. */ void -srandom(unsigned long x) +srandom(unsigned int x) { long i; @@ -467,7 +467,7 @@ setstate(arg_state) * * Returns a 31-bit random number. */ -long +int random(void) { long i;