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