X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Frand.c;h=2090b9ae6b7c46f1f41ec5d80cf54fecbd126dcc;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=b326be00493615731ba5ecb7ba5d62170b7af3cc;hpb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;p=pdclib diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index b326be0..2090b9a 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,7 +11,7 @@ int rand( void ) { _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345; - return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768; + return (int)( _PDCLIB_seed / 65536 ) % 32768; } #endif