From 09000b3a82fbf035276fe8415c9f89b32e2ed567 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Dec 2017 15:37:17 +0100 Subject: spec/util.random: Check a larger range of sizes --- spec/util_random_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') 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); -- cgit v1.2.3