Date: Sat, 5 Oct 2002 22:35:28 -0700 (PDT) From: Peter Leftwich <Hostmaster@Video2Video.Com> To: FreeBSD Questions LIST <FreeBSD-Questions@FreeBSD.Org> Subject: /dev/urandom is randomly cool Message-ID: <20021005223308.D2062-100000@dhcp-407-32.san.rr.com>
next in thread | raw e-mail | index | archive | help
I was sorting through my /usr/X11R6/bin/startx text-file and noticed: mcookie=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"` I started playing around with `cat /dev/urandom` and `head -1 /dev/urandom` so my question is... How can I use the head -1 method and change the output into just [A-Za-z0-9] and no spaces or punctuation? And specify length? -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021005223308.D2062-100000>