From 4dd8796b415b757e34ee18105cff591bbff5b6fa Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 28 Nov 2007 01:32:03 +0000 Subject: 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. --- etc/rc.update_bogons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.1