2 * random.h - redefine name of random lib routines to avoid conflicts
6 * Copyright (C) 1996, 2001, 2004, 2005 the Free Software Foundation, Inc.
8 * This file is part of GAWK, the GNU implementation of the
9 * AWK Programming Language.
11 * GAWK is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
16 * GAWK is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 #define initstate gawk_initstate
27 #define setstate gawk_setstate
28 #define random gawk_random
29 #define srandom gawk_srandom
31 #if SIZEOF_UNSIGNED_INT == 4
32 typedef unsigned int gawk_uint32_t;
33 typedef int gawk_int32_t;
35 #if SIZEOF_UNSIGNED_LONG == 4
36 typedef unsigned long gawk_uint32_t;
37 typedef long gawk_int32_t;
40 #define uint32_t gawk_uint32_t
41 #define int32_t gawk_int32_t
50 extern long random __P((void));