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 32062dc commit 0603a26Copy full SHA for 0603a26
install/hst-install-debian.sh
@@ -105,13 +105,7 @@ download_file() {
105
106
# Defining password-gen function
107
gen_pass() {
108
- MATRIX='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
109
- LENGTH=16
110
- while [ ${n:=1} -le $LENGTH ]; do
111
- PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
112
- let n+=1
113
- done
114
- echo "$PASS"
+ cat /dev/urandom | tr -dc [:alnum:] | head -c16
115
}
116
117
# Defining return code check function
0 commit comments