On Thursday October 16 2008 03:35:39 am Jan Dvorak wrote: > > I added patches yesterday and today to make Bash use /dev/urandom for > > $RANDOM, > > [EMAIL PROTECTED]:~$ RANDOM=1 > [EMAIL PROTECTED]:~$ echo $RANDOM > 16838 > [EMAIL PROTECTED]:~$ echo $RANDOM > 5758 > [EMAIL PROTECTED]:~$ RANDOM=2 > [EMAIL PROTECTED]:~$ echo $RANDOM > 908 > [EMAIL PROTECTED]:~$ RANDOM=1 > [EMAIL PROTECTED]:~$ echo $RANDOM > 16838 > [EMAIL PROTECTED]:~$ echo $RANDOM > 5758 > > So throw the patch away, you are screwing things. It's documented and must > behave like this. If you want to use it with arc4random(), you must ensure > that once it's seeded by a number, old behavior returns.
The old arc4random patch, and this /dev/urandom patch, both keep the old Korn behavior. robert
pgpzQxwCzzWrL.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page