in reply to Re: Randomizing Unique ID?
in thread Randomizing Unique ID?
For so-called "pronounceable" passwords, try Crypt::RandPasswd. Looks nice, and based on a government standard.BEGIN { my @source = ('A'..'Z', 'a'..'z', '0'..'9'); sub generate_random_password { my $id = ""; for (1..18) { $id .= $source[rand @source]; } $id; } }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Randomizing Unique ID?
by BlaisePascal (Monk) on Aug 10, 2000 at 22:52 UTC | |
by tye (Sage) on Aug 10, 2000 at 23:21 UTC |