Skip to content

Commit 11cae65

Browse files
committed
Issues caused due to random generator
function random() { head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1 } to be replaced with function random() { head /dev/urandom | tr -dc 0-9 | head -c$1 } System expects an number
1 parent 853fcb2 commit 11cae65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test.bats

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

77

88
function random() {
9-
head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
9+
head /dev/urandom | tr -dc 0-9 | head -c$1
1010
}
1111

1212
function setup() {

test/test_actions.sh

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

88
# Define functions
99
random() {
10-
head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
10+
head /dev/urandom | tr -dc 0-9 | head -c$1
1111
}
1212

1313
echo_result() {

0 commit comments

Comments
 (0)