X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=1e8f3cd789b2542ba0e7ab78c969cb412ff325c7;hp=b326be00493615731ba5ecb7ba5d62170b7af3cc;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index b326be0..1e8f3cd 100644 --- a/functions/stdlib/rand.c +++ b/functions/stdlib/rand.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* rand( void ) This file is part of the Public Domain C Library (PDCLib). @@ -15,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 ) {