Mercurial > prosody-hg
view tests/test_util_random.lua @ 8094:dcda2ae4569d
prosodyctl: Don't switch user if we are root and run_as_root is enabled
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 19 Apr 2017 12:40:03 +0100 |
| parents | 32b74ad54432 |
| children |
line wrap: on
line source
-- Makes no attempt at testing how random the bytes are, -- just that it returns the number of bytes requested function bytes(bytes) assert_is(bytes(16)); for i = 1, 255 do assert_equal(i, #bytes(i)); end end
