Skip to content

Commit 0603a26

Browse files
authored
Update hst-install-debian.sh
1 parent 32062dc commit 0603a26

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,7 @@ download_file() {
105105

106106
# Defining password-gen function
107107
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"
108+
cat /dev/urandom | tr -dc [:alnum:] | head -c16
115109
}
116110

117111
# Defining return code check function

0 commit comments

Comments
 (0)