/dev/urandom example Example: how to use /dev/urandom # read 30 random bytes to random.bytes head -c 30 /dev/urandom > random.bytes