summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <egon@debian-devbox>2013-03-01 12:06:50 +0100
committerMichael Vogt <egon@debian-devbox>2013-03-01 12:06:50 +0100
commit01b810674a34e30eb8bb913b94351cdaccd57e1c (patch)
tree93b684196c659d2b61bf256ec8eb99eea543e867 /debian/apt.cron.daily
parentca3965066270db678649ffd19479a157d95b429f (diff)
parent0597dcd8fa8f933d8bf0d7fbea395408bf3b7e5d (diff)
merged from the debian-sid branch
Diffstat (limited to 'debian/apt.cron.daily')
-rw-r--r--debian/apt.cron.daily2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily
index 5c00f22db..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 count=1 2> /dev/null | cksum | 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"