tests/test_util_random.lua
changeset 8239 4878e4159e12
parent 8238 7d9a2c200736
child 8240 f81cd9aaf994
equal deleted inserted replaced
8238:7d9a2c200736 8239:4878e4159e12
     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