summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-27 22:04:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-27 22:04:07 +0000
commitd8d0d571af11101ab9484cf08b74c8574cf30402 (patch)
tree41ca97bc6d79f471c199b8cbe2acc23c3d92e87a /etc
parent57a2e25f0548502470d63cdb1efa51308e80a6a6 (diff)
downloadpfsense-d8d0d571af11101ab9484cf08b74c8574cf30402.zip
pfsense-d8d0d571af11101ab9484cf08b74c8574cf30402.tar.gz
Actually generate a random number
Diffstat (limited to 'etc')
-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