Skip to content

Commit 68492eb

Browse files
authored
Update test.bats
1 parent 8b0f24b commit 68492eb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/test.bats

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@ load 'test_helper/bats-file/load'
66

77

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

1812
function setup() {

0 commit comments

Comments
 (0)