lrand48.c

dgd/src/host/unix/lrand48.c · 308 B

From the archive dgd-1.2p4.tar.gz

Download the archive   « Back to the archive contents

# include "dgd.h"

extern void srand48	P((long));
extern long lrand48	P((void));

/*
 * NAME:	P->srandom()
 * DESCRIPTION:	set the random seed
 */
void P_srandom(s)
long s;
{
    srand48(s);
}

/*
 * NAME:	P->random()
 * DESCRIPTION:	return a long random number
 */
long P_random()
{
    return lrand48();
}

Site Stats

Snippets: 1791
Codebases: 571