diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-08 22:20:12 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-08 22:20:12 +0000 |
commit | f8abf03c3fb0f8abf3d41893922b59bb06daac2e (patch) | |
tree | 92c9cd2d6408aba656d6d9393cedc57ed084f6b1 /src/nice.c | |
parent | 65533e1b0939bba6a1a222ebc82189f448640ea9 (diff) | |
download | coreutils-f8abf03c3fb0f8abf3d41893922b59bb06daac2e.tar.xz |
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.
Include md5.h, randread.h, xmemxfrm.h.
(longopts, usage, main): Remove undocumented --seed option;
it's now replaced by --random-source.
(rand_state, get_hash): Remove.
(randread_source): New static var.
(random_state, cmp_hashes, compare_random): New functions; they guarantee
no collisions in the random hash function.
(keycompare): Use compare_random for -R; don't fall back on comparing
via memcoll, since compare_random does the right thing.
Diffstat (limited to 'src/nice.c')
0 files changed, 0 insertions, 0 deletions