13 ms·
Cool one-liner to get random digits. On OSX, it produces the error "tr: Illegal byte sequence." The solution, per https://unix.stackexchange.com/q/45404 https:/
by EForEndeavour 8y ago
Cool one-liner to get random digits. On OSX, it produces the error "tr: Illegal byte sequence." The solution, per https://unix.stackexchange.com/q/45404 https://unix.stackexchange.com/q/45404, is to prepend the script with "LC_CTYPE=C ":
LC_CTYPE=C </dev/urandom tr -dc 0-9 | head -c 15