On Wed, Mar 19, 2008 at 12:40:37PM +0100, Petter Reinholdtsen wrote:
> +# Select a random day to submit on, to spread the load over time, unless it 
> is already set.
> +select_random_day() {
> +             RANDOM=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut 
> -c"1-5")
> +             DAY=$(($RANDOM % 7))
> +}

This seems overly complex: we could just replace _both_ lines by

  DAY=$(bash -c 'echo $(($RANDOM % 7))')

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to