2003-11-12 00:52:45 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* random.c
|
|
|
|
* random() wrapper
|
|
|
|
*
|
2008-01-01 20:46:01 +01:00
|
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
2003-11-12 00:52:45 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* IDENTIFICATION
|
2008-01-01 20:46:01 +01:00
|
|
|
* $PostgreSQL: pgsql/src/port/random.c,v 1.9 2008/01/01 19:46:00 momjian Exp $
|
2003-11-12 00:52:45 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
2001-08-24 16:07:50 +02:00
|
|
|
|
|
|
|
#include "c.h"
|
1997-12-19 14:35:17 +01:00
|
|
|
|
1999-07-16 05:14:30 +02:00
|
|
|
#include <math.h>
|
2005-07-28 06:03:14 +02:00
|
|
|
|
1999-02-07 23:07:02 +01:00
|
|
|
|
1997-12-19 03:27:20 +01:00
|
|
|
long
|
|
|
|
random()
|
|
|
|
{
|
1998-09-01 05:29:17 +02:00
|
|
|
return lrand48();
|
1997-12-19 03:27:20 +01:00
|
|
|
}
|