Skip to content

Commit

Permalink
Merge pull request #63 from OpenCHAMI/60-github-actions-hangup-when-r…
Browse files Browse the repository at this point in the history
…ead-string-from-devurandom-in-quickstartgenerate-configssh

generate-configs.sh: Be more precise with /dev/urandom when reading from it
  • Loading branch information
synackd authored Jul 8, 2024
2 parents 3422fca + 666848a commit 8cc1a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstart/generate-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ get_eth0_ipv4() {

generate_random_alphanumeric() {
local num_chars=${1:-32}
cat /dev/urandom | tr -dc '[:alnum:]' | fold -w "$num_chars" | head -n 1
dd bs=512 if=/dev/urandom count=1 2>/dev/null | tr -dc '[:alnum:]' | fold -w "${num_chars}" | head -n 1
}

# Generate OPAAL config from configs/opaal-template.yaml. This will populate the
Expand Down

0 comments on commit 8cc1a46

Please sign in to comment.