X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=1e8f3cd789b2542ba0e7ab78c969cb412ff325c7;hp=b4d01de8db5a056ed4157a7b03c7544d1b17cc4f;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=b08f4b52b1cd1f7a9553c0f357a7c90859fa3e73 diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index b4d01de..1e8f3cd 100644 --- a/functions/stdlib/rand.c +++ b/functions/stdlib/rand.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* rand( void ) This file is part of the Public Domain C Library (PDCLib). @@ -13,13 +11,13 @@ int rand( void ) { _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345; - return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768; + return (int)( _PDCLIB_seed / 65536 ) % 32768; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {