postgresql/src/port/srandom.c

26 lines
497 B
C
Raw Normal View History

2003-11-12 00:52:45 +01:00
/*-------------------------------------------------------------------------
*
* srandom.c
* srandom() wrapper
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
2003-11-12 00:52:45 +01:00
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
2010-09-20 22:08:53 +02:00
* src/port/srandom.c
2003-11-12 00:52:45 +01:00
*
*-------------------------------------------------------------------------
*/
#include "c.h"
1999-07-16 05:14:30 +02:00
#include <math.h>
1999-02-07 23:07:02 +01:00
void
srandom(unsigned int seed)
{
pg_srand48((long int) seed);
}