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
@@ -6,7 +6,7 @@ load 'test_helper/bats-file/load'
function random() {
- head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1
+ head /dev/urandom | tr -dc 0-9 | head -c$1
}
function setup() {
@@ -7,7 +7,7 @@ V_TEST="$HESTIA/test"
# Define functions
random() {
echo_result() {