Skip to content

Commit ec28b9c

Browse files
authored
Update hst-install-ubuntu.sh
1 parent 0603a26 commit ec28b9c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

install/hst-install-ubuntu.sh

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

8888
# Defining password-gen function
8989
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"
90+
cat /dev/urandom | tr -dc [:alnum:] | head -c16
9791
}
9892

9993
# Defining return code check function

0 commit comments

Comments
 (0)