coreutils random()

Robert Connolly robert at
Sat Sep 1 02:44:27 PDT 2007

shuff(1) too.


On Saturday September 1 2007 05:42:32 am Robert Connolly wrote:
> 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).
> robert

-------------- 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