diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-03 15:37:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-03 15:37:17 +0100 |
commit | 09000b3a82fbf035276fe8415c9f89b32e2ed567 (patch) | |
tree | 81ad02ec1399db7b3db28709669e95ad9207ffd9 /spec/util_random_spec.lua | |
parent | b11baf8702dbb7a522ab2718691a87200f27aea9 (diff) | |
download | prosody-09000b3a82fbf035276fe8415c9f89b32e2ed567.tar.gz prosody-09000b3a82fbf035276fe8415c9f89b32e2ed567.zip |
spec/util.random: Check a larger range of sizes
Diffstat (limited to 'spec/util_random_spec.lua')
-rw-r--r-- | spec/util_random_spec.lua | 4 |
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); |