in reply to Random String Generator
Generally it seems like you're just trying to throw as much "random stuff" into the pile as possible - but it's not really contributing anything. For high quality random data rendered as a typeable string I'd just dump a bunch of bytes from /dev/urandom and uu- or base64-encode them.#!/usr/bin/perl -w use strict; use English '-no_match_vars'; my $sum = 0; $sum += $_ for localtime; print substr(crypt($sum * $UID / $EGID, rand $PID), 2, 9);
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:x2 Random String Generator (It's the Knuth!)
by grinder (Bishop) on Jun 04, 2003 at 16:00 UTC | |
|
Re: Re: Random String Generator
by nimdokk (Vicar) on Jun 04, 2003 at 11:02 UTC |