I am thinking about running the following linux command on each boot to generate a new random token each boot.
printf '%s' "$RANDOM"`ps -e` | md5sum | cut -d ' ' -f 1
The first part takes a string from the shell's
$RANDOMvariable and then from
ps -esnapshot of every running process and PID at the moment.
The second hashes the string.
The last part simply cleans up the string by removing the trailing space-dash outputted with the hash.
Is this enough to generate a quick random string with enough entropy?