summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul R. Eggert <eggert@cs.ucla.edu>2010-07-19 10:46:41 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-07-19 10:48:00 -0700
commite5444fa2a7a2ad4246e7a5e961d5c4aad2aecbe9 (patch)
treec0ec89d3e37b4de1cff1657fc7ccdaca057f7fa0 /m4
parente7523efb7d73cefcbd76b499f19fb473f8eb2d13 (diff)
downloadcoreutils-e5444fa2a7a2ad4246e7a5e961d5c4aad2aecbe9.tar.xz
sort: -R no longer disables multithreading
* src/sort.c (random_md5_state): New static var. (random_md5_state_init): New function, to initialize random_md5_state. (random_state, randread_source): Remove. (cmp_hashes): Use random_md5_state rather than random_state. Break ties using memcmp, not by getting more randomness. If MD5 collisions turn into a problem in practice, we should simply use a better checksum. (main): If -R is given, call random_md5_state_init rather than going single-threaded.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions