~donkult/apt/sid

« back to all changes in this revision

Viewing changes to debian/apt.cron.daily

  • Committer: Michael Vogt
  • Date: 2013-01-10 15:54:13 UTC
  • mfrom: (2271.1.1 train-fixes)
  • Revision ID: michael.vogt@ubuntu.com-20130110155413-ua3uxjq6515vydma
merged train fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
    fi
290
290
    if [ -z "$RANDOM" ] ; then
291
291
        # A fix for shells that do not have this bash feature.
292
 
        RANDOM=$(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1 | cut -c"1-5")
 
292
        RANDOM=$(( $(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32767 ))
293
293
    fi
294
294
    TIME=$(($RANDOM % $RandomSleep))
295
295
    debug_echo "sleeping for $TIME seconds"