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