[Popcon-developers] Time for a new popcon release?
Bill Allombert
Bill.Allombert at math.u-bordeaux1.fr
Sun May 4 16:32:57 UTC 2008
Hello Petter,
The email I alluded to is in attachement.
Cheers,
Bill.
-------------- next part --------------
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. <ballombe at debian.org>
Imagine a large red swirl here.
_______________________________________________
Popcon-developers mailing list
Popcon-developers at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/popcon-developers
More information about the Popcon-developers
mailing list