random.c
dgd/src/host/beos/random.c · 247 B
From the archive dgd-1.2p4.tar.gz
Download the archive « Back to the archive contents
# include "dgd.h"
/*
* NAME: P->srandom()
* DESCRIPTION: set the random seed
*/
void P_srandom(long s)
{
srandom((int) s);
}
/*
* NAME: P->random()
* DESCRIPTION: return a long random number
*/
long P_random()
{
return random();
}