Address Issue pointed out in (now deleted) comment on an old merge

This commit is contained in:
kaleb-himes
2022-09-18 08:45:18 -06:00
parent e6bd6a94a0
commit 9a193a3e02
4 changed files with 4 additions and 4 deletions

View File

@ -387,7 +387,7 @@ generate_port() {
# Generate a random port number
#-------------------------------------------------------------------------#
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then
port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512))
elif [[ "$OSTYPE" == "darwin"* ]]; then
port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512))

View File

@ -452,7 +452,7 @@ generate_port() {
# Generate a random port number
#-------------------------------------------------------------------------#
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then
port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512))
elif [[ "$OSTYPE" == "darwin"* ]]; then
port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512))

View File

@ -36,7 +36,7 @@ generate_port() {
# Generate a random port number
#-------------------------------------------------------------------------#
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then
port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512))
elif [[ "$OSTYPE" == "darwin"* ]]; then
port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512))

View File

@ -19,7 +19,7 @@ generate_port() {
# Generate a random port number
#-------------------------------------------------------------------------#
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then
port=$(($(od -An -N2 /dev/urandom) % (65535-49512) + 49512))
elif [[ "$OSTYPE" == "darwin"* ]]; then
port=$(($(od -An -N2 /dev/random) % (65535-49512) + 49512))