Password generator: Difference between revisions
Content added Content deleted
Line 3,083:
sub char-groups( @exclude )
{
.map( * (-) @exclude )
.grep( *.so );
}
sub generate-passwords( UInt $count, UInt $length,
{
password-characters(
.batch( $length )
.map( *.pick: Inf ) # shuffle, so we don't get a predictable pattern
Line 3,107 ⟶ 3,103:
}
sub password-characters(
{
gather loop { take .pick for @char-groups }
}
|