Here are a couple other methods you can use in linux to generate payment ids.
od -N32 -An -tx1 < /dev/random | tr -d '[:space:]
and if you want to use as few linux dependencies as possible, you can use,
rand=$(awk 'BEGIN{srand();for(i=1;i<=64;i++)printf "%x", int(rand()*16)}')
echo $rand
if you are really lazy, you could also use the website here that generates random strings of the appropriate format.
Conversely you can now use the wallet itself to generate an address with the payment id integrated into it, This is called an "integrated address".
In the CLI wallet simply use the command,
integrated_address
the GUI also has integrated addresses as an option when sending funds.
openssl rand -hex 32
. Pay attention to the position of-hex
. Otherwise you will see this error messagerand: Use -help for summary.
. – rocksteady Jul 20 '18 at 07:59