mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r): Override the system function if REPLACE_RANDOM_R is 1. * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX and OSF/1, set REPLACE_RANDOM_R. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R. * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R. * modules/random_r (configure.ac): Test REPLACE_RANDOM_R. * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise.
30 lines
380 B
Plaintext
30 lines
380 B
Plaintext
Description:
|
|
reentrant random number generator
|
|
|
|
Files:
|
|
lib/random_r.c
|
|
m4/random_r.m4
|
|
|
|
Depends-on:
|
|
stdlib
|
|
stdint
|
|
|
|
configure.ac:
|
|
gl_FUNC_RANDOM_R
|
|
if test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1; then
|
|
AC_LIBOBJ([random_r])
|
|
gl_PREREQ_RANDOM_R
|
|
fi
|
|
gl_STDLIB_MODULE_INDICATOR([random_r])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<stdlib.h>
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
Jim Meyering, glibc
|