X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=b8163a381c145ba6779d9ae20b81a23f6579c87a;hp=1ad3e915d76ff0e971810c008a719ad8d8da553c;hb=e25ac2ecee6251afcec84e08165e454fb6bc256c;hpb=bf5c2e9fac630d11f6232ff7fd90d3060065b53a diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index 1ad3e91..b8163a3 100644 --- a/functions/stdlib/rand.c +++ b/functions/stdlib/rand.c @@ -2,7 +2,7 @@ /* Release $Name$ */ -/* rand() +/* rand( void ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -12,7 +12,7 @@ #ifndef REGTEST -int rand() +int rand( void ) { _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345; return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768;