|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: sysfunc.c,v 1.18 2003/09/10 21:32:22 stpohle Exp $
|
|
|
|
/* $Id: sysfunc.c,v 1.19 2003/09/11 19:44:32 stpohle Exp $
|
|
|
|
sysfunc.c - this file hold some routines for the system functions..
|
|
|
|
sysfunc.c - this file hold some routines for the system functions..
|
|
|
|
like d_delay
|
|
|
|
like d_delay
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -30,7 +30,7 @@ s_delay (int ms)
|
|
|
|
int
|
|
|
|
int
|
|
|
|
s_random (int maxnr)
|
|
|
|
s_random (int maxnr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
|
|
|
#if ( defined _WIN32 ) || ( RAND_MAX < 2147483647UL )
|
|
|
|
return ((rand () * maxnr) / RAND_MAX);
|
|
|
|
return ((rand () * maxnr) / RAND_MAX);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|