summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.update_bogons.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 8221ad4..31ead60 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -4,11 +4,8 @@
# Part of the pfSense project
# www.pfsense.com
-# Grab a random value between 0-999.
-value=$RANDOM
-while [ $value -gt 999 ] ; do
- value=$RANDOM
-done
+# Grab a random value
+value=`hexdump -n1 -e\"%u\" /dev/random`
# Sleep for that time.
sleep $value
OpenPOWER on IntegriCloud