PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
srandom.c
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * srandom.c
4  * srandom() wrapper
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  *
10  * IDENTIFICATION
11  * src/port/srandom.c
12  *
13  *-------------------------------------------------------------------------
14  */
15 
16 #include "c.h"
17 
18 #include <math.h>
19 
20 
21 void
22 srandom(unsigned int seed)
23 {
24  pg_srand48((long int) seed);
25 }
void pg_srand48(long seed)
Definition: erand48.c:102
void srandom(unsigned int seed)
Definition: srandom.c:22