From 46651ce6fe013220ed397add242004d764fc0153 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:15:05 +0200 Subject: Adding upstream version 14.5. Signed-off-by: Daniel Baumann --- src/port/srandom.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/port/srandom.c (limited to 'src/port/srandom.c') diff --git a/src/port/srandom.c b/src/port/srandom.c new file mode 100644 index 0000000..cf1007b --- /dev/null +++ b/src/port/srandom.c @@ -0,0 +1,25 @@ +/*------------------------------------------------------------------------- + * + * srandom.c + * srandom() wrapper + * + * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * src/port/srandom.c + * + *------------------------------------------------------------------------- + */ + +#include "c.h" + +#include + + +void +srandom(unsigned int seed) +{ + pg_srand48((long int) seed); +} -- cgit v1.2.3