postgresql/src/port/random.c

27 lines
560 B
C
Raw Normal View History

2003-11-12 00:52:45 +01:00
/*-------------------------------------------------------------------------
*
* random.c
* random() wrapper
*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
2003-11-12 00:52:45 +01:00
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/random.c,v 1.5 2004/12/31 22:03:53 pgsql Exp $
2003-11-12 00:52:45 +01:00
*
*-------------------------------------------------------------------------
*/
#include "c.h"
1999-02-07 23:07:02 +01:00
#include <stdlib.h>
1999-07-16 05:14:30 +02:00
#include <math.h>
#include <errno.h>
1999-02-07 23:07:02 +01:00
long
random()
{
1998-09-01 05:29:17 +02:00
return lrand48();
}