in reply to random passgen
update: Thanks to chipmunk and Aighearach change int(rand(length(@vowels))) to <int(rand(@vowels)) - As Aighearach says, "Yay! for context!" :) hth, bentprint "gimme a seed: "; my $s = <STDIN>; my @chars = qw(b c d f g h j k l m n p r s t v w x z); my @vowels = qw(a e i o u y); my $length = 4; #Should be (length of password)/2 srand ($s ^ time); print $chars[int(rand(@chars))], $vowels[int(rand(@vowels))] while($le +ngth--);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: random passgen
by merlyn (Sage) on May 04, 2001 at 18:53 UTC |