I know I can get random (well, pseudo-random) characters, unconstrained, from
/dev/urandom). But what if I need these characters to generate a filename? I need to somehow have a stream or a sequence of printable characters, or alphanumeric ones to be on the safe side. What's the best way to do that in the shell?
(I know I could theoretically do a
tr on chars from
/dev/random but that doesn't sound like the right thing to do.)