diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-27 22:04:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-27 22:04:07 +0000 |
commit | d8d0d571af11101ab9484cf08b74c8574cf30402 (patch) | |
tree | 41ca97bc6d79f471c199b8cbe2acc23c3d92e87a /etc/rc.update_bogons.sh | |
parent | 57a2e25f0548502470d63cdb1efa51308e80a6a6 (diff) | |
download | pfsense-d8d0d571af11101ab9484cf08b74c8574cf30402.zip pfsense-d8d0d571af11101ab9484cf08b74c8574cf30402.tar.gz |
Actually generate a random number
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-x | etc/rc.update_bogons.sh | 7 |
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 |