projects
/
prosody.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mod_admin_telnet: remove unused import (util.serialization) [luacheck]
[prosody.git]
/
tests
/
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