for safely obtaining random bytes and random integers from the operating system's entropy source /dev/urandom.
$ luarocks install os-urandom
root