00001 /*------------------------------------------------------------------------- 00002 * 00003 * srandom.c 00004 * srandom() wrapper 00005 * 00006 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00007 * Portions Copyright (c) 1994, Regents of the University of California 00008 * 00009 * 00010 * IDENTIFICATION 00011 * src/port/srandom.c 00012 * 00013 *------------------------------------------------------------------------- 00014 */ 00015 00016 #include "c.h" 00017 00018 #include <math.h> 00019 00020 00021 void 00022 srandom(unsigned int seed) 00023 { 00024 pg_srand48((long int) seed); 00025 }