
2 Oct
2018
2 Oct
'18
6:06 a.m.
On 2018-10-02 12:44 AM, William Park via talk wrote:
Even more portable would be
echo -e $(for i in $(seq 32); do printf '\\x%x' $((RANDOM % 94 + 33)); done)
It might be more portable, but bash's $RANDOM comes from a very simple pseudorandom number generator, where Giles's solution uses /dev/urandom. There's also a bit of modulo bias in the selection method. cheers, Stewart