]> pd.if.org Git - pdclib.old/blobdiff - functions/stdlib/rand.c
Add newline translationwq
[pdclib.old] / functions / stdlib / rand.c
index b326be00493615731ba5ecb7ba5d62170b7af3cc..40d782448421c4e1201fe31b7dd97aff3c16d94c 100644 (file)
@@ -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