Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/cddlib/patches/random.h
8818 views
1
#ifndef RANDOM__H
2
#define RANDOM__H
3
4
/* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
5
6
----------------------------------------------------------
7
Random numbers that return the same sequence on all platforms.
8
Implementation taken from the GNU C Library. The same copyright
9
applies.
10
----------------------------------------------------------
11
12
The GNU C Library is free software; you can redistribute it and/or
13
modify it under the terms of the GNU Lesser General Public
14
License as published by the Free Software Foundation; either
15
version 2.1 of the License, or (at your option) any later version.
16
17
The GNU C Library is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
Lesser General Public License for more details.
21
22
You should have received a copy of the GNU Lesser General Public
23
License along with the GNU C Library; if not, write to the Free
24
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25
02111-1307 USA. */
26
27
void portable_srand(unsigned int seed);
28
int portable_rand(void);
29
30
#endif /* RANDOM__H */
31
32
33
/* The largest number rand will return (same as INT_MAX). */
34
#define RAND_MAX 2147483647
35
/* intentionally outside the #ifdef RANDOM__H block */
36
/* You must overwrite the system RAND_MAX! */
37
38
39