[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 26 Apr 2007 01:38:46 -0400
Hello. I have attached a very simple patch to add arc4random() to Bash for
setting $RANDOM. It does not break the expected behavior of $RANDOM. It
simply replaces getpid()+gettimeofday() with arc4random(). arc4random() is
available on all BSD variants, and is used to get random numbers for
non-cryptographic applications using little or no kernel entropy.
The behavior of being able to set 'RANDOM=1' to get a predictable number is
unaffected by this patch. Please consider adding this patch so an
uninitialized $RANDOM variable will be slightly better quality.
Description: Text Data
Description: PGP signature
|[Prev in Thread]
||[Next in Thread]|
Robert Connolly <=