summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-functions3
1 files changed, 1 insertions, 2 deletions
diff --git a/test-functions b/test-functions
index fd3f176..4b2f7f9 100755
--- a/test-functions
+++ b/test-functions
@@ -427,8 +427,7 @@ test_srandom() {
number=$(srandom)
test_description="srandom ($(( row += 1 ))/5: ${number:-blank})"
is_int "${number}" \
- && test "${number}" -ge 0 \
- && test "${number}" -le 4294967295
+ && awk -v "n=${number}" 'BEGIN { exit !(n >= 0 && n <= 4294967295) }'
}
iterate_tests 2 "$@"