Use os.urandom() to read from /dev/urandom