diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2013-01-10 16:54:13 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2013-01-10 16:54:13 +0100 |
commit | e646142d11fe5d1368ab879bb87922b462a0cf83 (patch) | |
tree | 4eea215575cf4f9721bc7c80ad90d47afa10e907 /debian | |
parent | 45a9cc46a143cc2864bba910cff2d9dfc1172dec (diff) | |
parent | d925ac78f9068618bad0027fff56278d452a7c91 (diff) |
merged train fixes
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.cron.daily | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 27f08dd4a..2665b6579 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -289,7 +289,7 @@ random_sleep() fi if [ -z "$RANDOM" ] ; then # A fix for shells that do not have this bash feature. - RANDOM=$(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1 | cut -c"1-5") + RANDOM=$(( $(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32767 )) fi TIME=$(($RANDOM % $RandomSleep)) debug_echo "sleeping for $TIME seconds" |