Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is not meant as criticism: Is there any particular reason for all the tr pipes? Is there any advantage to using tr instead of base64?

I essentially use the following:

  base64 </dev/urandom | head -c $COUNT | xargs -0


Criticism welcome. Yours is nicer.


I use this for a little more entropy:

    LANG=C tr -dc "[:print:]" < /dev/urandom | fold -w 32 | head -n 1




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: