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

Attachment: pgpi56OCvyir3.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to