summaryrefslogtreecommitdiffstats
path: root/src/rand.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/rand.sh')
-rw-r--r--src/rand.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rand.sh b/src/rand.sh
index 8592dd6..9b2e716 100644
--- a/src/rand.sh
+++ b/src/rand.sh
@@ -23,9 +23,10 @@ rand_x=1
srand()
{
local x="${1}"
+ shift 1
case "${x}" in
- *[!0-9]*)
+ *[!0-9]* | '')
warn "$(get_msg 'rand_bad_x')"
return 1
;;