Skip to content

Commit 06a43ca

Browse files
authored
Update test_actions.sh
1 parent e1f1ec8 commit 06a43ca

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/test_actions.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ V_TEST="$HESTIA/test"
77

88
# Define functions
99
random() {
10-
MATRIX='0123456789'
11-
LENGTH=$1
12-
while [ ${n:=1} -le $LENGTH ]; do
13-
rand="$rand${MATRIX:$(($RANDOM%${#MATRIX})):1}"
14-
let n+=1
15-
done
16-
echo "$rand"
10+
cat /dev/urandom | tr -dc [:num:] | head -c$1
1711
}
1812

1913
echo_result() {

0 commit comments

Comments
 (0)