Generate 32 random characters
OpenSSL
openssl rand -hex 32pwgen
pwgen 32 1/dev/urandom
hexdump -vn32 -e'4/8 "%08X" 1 "\n"' /dev/urandom-vto print all data (by default hexdump replaces repetition by *).-n16to consume 16 bytes of input (32 hex digits = 16 bytes).4/8 "%08X"to iterate four times, consume 8 bytes per iteration and print the corresponding 64 bits value as 16 hex digits, with leading zeros, if needed.1 "\n"to end with a single newline.
tr
tr -dc 'A-F0-9' < /dev/urandom | dd bs=1 count=32 2>/dev/null``
