Use new random-number interface rather than rand-isaac.c.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Aug 2006 22:20:12 +0000 (22:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Aug 2006 22:20:12 +0000 (22:20 +0000)
commitf8abf03c3fb0f8abf3d41893922b59bb06daac2e
tree92c9cd2d6408aba656d6d9393cedc57ed084f6b1
parent65533e1b0939bba6a1a222ebc82189f448640ea9
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.
src/sort.c