Re: new coreutil? shuffle - randomize file contents

2005-06-05 Thread Frederik Eaton
> $ print -l g f e d c b a | ./sort -R | md5sum > dda0a6660319917afd6ed021f27fb452 - > $ print -l a b c d e f g | ./sort -R | md5sum > dda0a6660319917afd6ed021f27fb452 - By the way, this wouldn't actually be the default behavior, you'd have to specify an explicit seed and have it be the same eac

Re: new coreutil? shuffle - randomize file contents

2005-06-05 Thread Frederik Eaton
So, the prototype runs a little slower than I had expected - it's currently using md5 hashes, I could also look into CRC or something faster (but less secure, for those concerned). Anyway here is a sample: $ time ./sort -R < /usr/share/dict/words > /dev/null ./sort -R < /usr/share/dict/words > /de