1999-07-15 17:21:54 +02:00
|
|
|
/* $Id: srandom.c,v 1.7 1999/07/15 15:19:34 momjian Exp $ */
|
1997-12-19 14:35:17 +01:00
|
|
|
|
1999-02-07 23:07:02 +01:00
|
|
|
#include <stdlib.h>
|
1998-02-26 05:46:47 +01:00
|
|
|
#include <math.h> /* for pow() prototype */
|
1997-12-19 03:27:20 +01:00
|
|
|
#include <errno.h>
|
1999-02-07 23:07:02 +01:00
|
|
|
|
1997-12-19 03:27:20 +01:00
|
|
|
void
|
1997-12-19 03:46:25 +01:00
|
|
|
srandom(unsigned int seed)
|
1997-12-19 03:27:20 +01:00
|
|
|
{
|
|
|
|
srand48((long int) seed);
|
|
|
|
}
|