diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 01:32:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-28 01:32:03 +0000 |
commit | 4dd8796b415b757e34ee18105cff591bbff5b6fa (patch) | |
tree | 7e734d1502a9a7d32e8e5b388827bf61ef472c6f /etc | |
parent | c0e7d986cda1ee11cdea4c108ce4374c026d296f (diff) | |
download | pfsense-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-x | etc/rc.update_bogons.sh | 2 |
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 |