I\'d like to put together a command that will print out a string of 32 hexadecimal digits. I\'ve got a Python script that works:
python -c \'import random ; prin
There three ways that I know of:
#!/bin/bash n=16 # Read n bytes from urandom (in hex): xxd -l "$n" -p /dev/urandom | tr -d " \n" ; echo od -vN "$n" -An -tx1 /dev/urandom | tr -d " \n" ; echo hexdump -vn "$n" -e ' /1 "%02x"' /dev/urandom ; echo
Use one, comment out the other two.