summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-28 01:32:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-28 01:32:03 +0000
commit4dd8796b415b757e34ee18105cff591bbff5b6fa (patch)
tree7e734d1502a9a7d32e8e5b388827bf61ef472c6f /etc
parentc0e7d986cda1ee11cdea4c108ce4374c026d296f (diff)
downloadpfsense-4dd8796b415b757e34ee18105cff591bbff5b6fa.zip
pfsense-4dd8796b415b757e34ee18105cff591bbff5b6fa.tar.gz
Switch to a more random number between 1-2,000. that'd be somewhere between
immediately and 33 minutes. If people are setting their time zone properly that also helps distribute the load, since it runs at 1:01 AM local time.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.update_bogons.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 213df7b..957a52b 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -5,7 +5,7 @@
# www.pfsense.com
# Grab a random value
-value=`hexdump -n1 -e\"%u\" /dev/random`
+value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*2000)}'`
# Sleep for that time.
sleep $value
OpenPOWER on IntegriCloud