aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/util_random_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/util_random_spec.lua b/spec/util_random_spec.lua
index e847d92e..c080a2c9 100644
--- a/spec/util_random_spec.lua
+++ b/spec/util_random_spec.lua
@@ -11,8 +11,8 @@ describe("util.random", function()
-- Makes no attempt at testing how random the bytes are,
-- just that it returns the number of bytes requested
- for i = 1, 255 do
- assert.are.equal(i, #random.bytes(i));
+ for i = 1, 20 do
+ assert.are.equal(2^i, #random.bytes(2^i));
end
end);
end);