Software /
code /
prosody
File
tests/test_util_random.lua @ 8188:8c524b7c9017
mod_disco: Advertise in stream-features after auth (probably what was meant in 200f1f6306a7) (fixes #957)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 27 Jul 2017 14:10:18 +0200 |
parent | 7172:32b74ad54432 |
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