beta-0.89.2
[luatex.git] / source / libs / gmp / gmp-src / rand / rands.c
blob1701da7a2c0c9bbc27bbb52a356eddc393319b1f
1 /* __gmp_rands -- global random state for old-style random functions.
3 EVERYTHING IN THIS FILE IS FOR INTERNAL USE ONLY. IT'S ALMOST CERTAIN TO
4 BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU
5 MP RELEASES. */
7 /*
8 Copyright 2001 Free Software Foundation, Inc.
10 This file is part of the GNU MP Library.
12 The GNU MP Library is free software; you can redistribute it and/or modify
13 it under the terms of either:
15 * the GNU Lesser General Public License as published by the Free
16 Software Foundation; either version 3 of the License, or (at your
17 option) any later version.
21 * the GNU General Public License as published by the Free Software
22 Foundation; either version 2 of the License, or (at your option) any
23 later version.
25 or both in parallel, as here.
27 The GNU MP Library is distributed in the hope that it will be useful, but
28 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
29 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30 for more details.
32 You should have received copies of the GNU General Public License and the
33 GNU Lesser General Public License along with the GNU MP Library. If not,
34 see https://www.gnu.org/licenses/. */
36 #include "gmp.h"
37 #include "gmp-impl.h"
40 /* Use this via the RANDS macro in gmp-impl.h */
41 char __gmp_rands_initialized = 0;
42 gmp_randstate_t __gmp_rands;