mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
spec/util.random: Check a larger range of sizes
This commit is contained in:
parent
96d9651ece
commit
9ed1cb4bec
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue