macos/ubuntu supported
rand_str=$(cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 16)
echo $rand_str
macos unsupported
rand_str=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
echo $rand_str
文章短網址: https://slanla.com/__jzjg2t