mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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.
This commit is contained in:
parent
c0e7d986cd
commit
4dd8796b41
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user