mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 02:41:26 +02:00
26 lines
553 B
C
26 lines
553 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* srandom.c
|
|
* srandom() wrapper
|
|
*
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
*
|
|
* IDENTIFICATION
|
|
* $PostgreSQL: pgsql/src/port/srandom.c,v 1.7 2006/03/05 15:59:10 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "c.h"
|
|
|
|
#include <math.h>
|
|
|
|
|
|
void
|
|
srandom(unsigned int seed)
|
|
{
|
|
srand48((long int) seed);
|
|
}
|