We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdfa909 commit e1f1ec8Copy full SHA for e1f1ec8
install/hst-install-ubuntu.sh
@@ -87,13 +87,7 @@ download_file() {
87
88
# Defining password-gen function
89
gen_pass() {
90
- MATRIX='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
91
- LENGTH=16
92
- while [ ${n:=1} -le $LENGTH ]; do
93
- PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
94
- let n+=1
95
- done
96
- echo "$PASS"
+ cat /dev/urandom | tr -dc [:alnum:] | head -c16
97
}
98
99
# Defining return code check function
0 commit comments