]> granicus.if.org Git - postgresql/blob - src/port/srandom.c
2dfc19bc97fe851d2410d1a1057b1067354bba78
[postgresql] / src / port / srandom.c
1 /*-------------------------------------------------------------------------
2  *
3  * srandom.c
4  *        srandom() wrapper
5  *
6  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  *
10  * IDENTIFICATION
11  *        $PostgreSQL: pgsql/src/port/srandom.c,v 1.9 2008/01/01 19:46:00 momjian Exp $
12  *
13  *-------------------------------------------------------------------------
14  */
15
16 #include "c.h"
17
18 #include <math.h>
19
20
21 void
22 srandom(unsigned int seed)
23 {
24         srand48((long int) seed);
25 }