]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Use new random-number interface rather than rand-isaac.c.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Aug 2006 22:19:39 +0000 (22:19 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Aug 2006 22:19:39 +0000 (22:19 +0000)
commit65533e1b0939bba6a1a222ebc82189f448640ea9
treef212268d42827ddf7444faf8edc87de3b263fb86
parent129e7756b94ed951e74bb2fb062e45a9f718224c
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
(struct irand_state, irand_init, irand32, irand_mod): Remove.
All callers changed to use randint interface.
(fillrand): Remove.  All callers changed to use randread interface.
(dopass): Remove dependency on ISAAC buffer size.
(genpattern): Don't wipe the random state here.
(randint_source): New static var.
(clear_random_data): New function.
(main): Allocate random source, and arrange to wipe it on exit.
src/shred.c