coreutils random()

Robert Connolly robert at
Sat Sep 1 02:42:32 PDT 2007

In Coreutils lib/ directory I found rand-isaac.c, which uses getpid() for 
entropy, which is used by randread.c, which is used by sort(1) and shred(1).

rand-isaac is based on rc4.

I briefly checked into how it's used for shred(1). shred(1) will try to 
use /dev/urandom first, and drop to rand-isaac after.

This looks like another good place to use /dev/erandom and arc4random(3).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the hlfs-dev mailing list