local.c

dgd/src/host/pc/local.c · 255 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 random seed
 */
void P_srandom(long seed)
{
    srand((unsigned int) seed);
}

/*
 * NAME:	P->random()
 * DESCRIPTION:	get random number
 */
long P_random(void)
{
    return (long) rand();
}

Site Stats

Snippets: 1791
Codebases: 571