I am working on a project where I need to generate a random value and assign it to a variable… Initially I was doing this: var=$(date +%s | sha512sum | base64 | head -c 12 ; echo) Which was okay until I started executing my script more than once in a short period of time. […]