Thanks Orly. I'm quite satisfied with the results from String::Random, I
think this would be sufficient. If my computations are correct, the
chances of duplication is something like 1 out of 676 million (random
username) and 1 out of 456.976 billion (random password). Combining the
two would be enough space :)
-----Original Message-----
From: Orlando Andico [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [plug] [OT] Perl's String::Random module
On Wed, 20 Jun 2001 [EMAIL PROTECTED] wrote:
..
> I'd like to post a question to the Perl gurus in this list: how random
> is Perl's String::Random module such that even if someone runs the
same
> sequence of random characters on another machine, the probability of
> would not be too high.
Quite random. But you can roll your own: use Digest::MD5 and base it on
the machine id of your machine. Or read /dev/urandom (Linux boxes
only) for some cryptographically secure random numbers. Of course
there's
a 1-in-2^128 chance of a hash collision (uhm, there are less protons in
the universe than that =)
--
Orlando Andico <[EMAIL PROTECTED]>
Mosaic Communications, Inc.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE d(-) s: a-25 C++++ UBLSI++++$ P+++ L+++>++++ E- W++ N(+)
o K? w O-- M- !V PS(++) PE- Y PGP-- t(+)@ 5(+) X++@ R(+) tv@
b++ DI++ G e++@ h--(*) r% y+
------END GEEK CODE BLOCK------
_
Philippine Linux Users Group. Web site and archives at
http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to
[EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]
smime.p7s