X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=b8163a381c145ba6779d9ae20b81a23f6579c87a;hb=df23eb1ed6f397f1dfd952765aace12bd1717ee1;hp=1ad3e915d76ff0e971810c008a719ad8d8da553c;hpb=018bb4d66e9e10c0dc17e6f5f4f91b875dc2c151;p=pdclib.old 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;