projects
/
prosody.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
79572ef815dd946f4b77fdf72481f6d7879058c9
[prosody.git]
/
test_util_random.lua
1
-- Makes no attempt at testing how random the bytes are,
2
-- just that it returns the number of bytes requested
3
4
function bytes(bytes)
5
assert_is(bytes(16));
6
7
for i = 1, 255 do
8
assert_equal(i, #bytes(i));
9
end
10
end