X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=40d782448421c4e1201fe31b7dd97aff3c16d94c;hb=0d54a75af25ca44411e7c4190cc2a93a390e61a2;hp=b326be00493615731ba5ecb7ba5d62170b7af3cc;hpb=12e17136786afb1775c9dc946cbe41f5e230c24a;p=pdclib.old diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index b326be0..40d7824 100644 --- a/functions/stdlib/rand.c +++ b/functions/stdlib/rand.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* rand( void ) This file is part of the Public Domain C Library (PDCLib). @@ -15,7 +13,7 @@ int rand( void ) { _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345; - return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768; + return (int)( _PDCLIB_seed / 65536 ) % 32768; } #endif