summaryrefslogtreecommitdiff
path: root/debian/apt.cron.daily
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-01-09 08:25:14 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-01-09 08:25:14 +0100
commitd52f514fd380cdeef7ff68a54f81b82932d113cf (patch)
tree3c0d1ef2843fda42c8695fee49e53cfa5081a880 /debian/apt.cron.daily
parent34c2a164242d06b206abfde18e28990908aa9c58 (diff)
parent50816ce74432f24135aefc590361bbb8ccfc71f1 (diff)
merge train fixes
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..27f08dd4a 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 | cut -c"1-5")
fi
TIME=$(($RANDOM % $RandomSleep))
debug_echo "sleeping for $TIME seconds"