the availability of random() and
associated functions.
2012-01-14 Bruno Haible br...@clisp.org
New module 'random'.
* lib/stdlib.in.h (random, srandom, initstate, setstate): New
declarations.
* lib/random.c: New file, based on glibc/stdlib/random.c.
* m4/random.m4: New
While gnulib has a module 'random_r', it does not support random()
portably. I therefore had to recommend to the recutils author to
use a different API, just for portability:
http://lists.gnu.org/archive/html/bug-recutils/2012-01/msg00011.html
Note that my reason for preferring
Jose E. Marchesi wrote:
Note that my reason for preferring random to random_r in code which must
not be reentrant is the not documented requirement of memsetting the
random_data passed to initstate_r to zeroes. Even if that trick works
with the current versions of glibc (and the random_r