aboutsummaryrefslogtreecommitdiff
path: root/bin/rndi.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-24 20:20:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-24 20:20:41 +1300
commit692a114838b2d327fae9ab1fc5954e360af84501 (patch)
treebde758b8b3036b2f915765b5ff522f62e4766361 /bin/rndi.awk
parentMerge branch 'release/v1.77.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-692a114838b2d327fae9ab1fc5954e360af84501.tar.gz
dotfiles-692a114838b2d327fae9ab1fc5954e360af84501.zip
Merge branch 'hotfix/v1.77.1'v1.77.1
* hotfix/v1.77.1: Bump VERSION Allow equal bounds in rndi(1df)
Diffstat (limited to 'bin/rndi.awk')
-rw-r--r--bin/rndi.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rndi.awk b/bin/rndi.awk
index 7d5a5b96..02e0574f 100644
--- a/bin/rndi.awk
+++ b/bin/rndi.awk
@@ -13,8 +13,8 @@ BEGIN {
# Floor args and check for sanity
lower = int(ARGV[1] + 0)
upper = int(ARGV[2] + 0)
- if (lower >= upper)
- fail("Bounds must be numeric, first lower than second")
+ if (upper < lower)
+ fail("Bounds must be numeric, first not greater than second")
# Get a random seed if rnds(1df) available
rnds = "rnds 2>/dev/null"