aboutsummaryrefslogtreecommitdiff
path: root/src/port/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/random.c')
-rw-r--r--src/port/random.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/port/random.c b/src/port/random.c
new file mode 100644
index 00000000000..8bb53e8914f
--- /dev/null
+++ b/src/port/random.c
@@ -0,0 +1,13 @@
+/* $Id: random.c,v 1.1 2002/07/18 04:13:59 momjian Exp $ */
+
+#include "c.h"
+
+#include <stdlib.h>
+#include <math.h>
+#include <errno.h>
+
+long
+random()
+{
+ return lrand48();
+}