The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#
# v5 should be all dupes.
#
use strict;
use MyNote;
BEGIN { use_ok 'UUID' }
my $n = 100;
my %seen = ();
for (1 .. $n) {
my ($bin, $str);
UUID::generate_v5($bin, dns => 'www.example.com');
UUID::unparse($bin, $str);
note $str;
#ok !exists($seen{$str});
$seen{$str} = 1;
}
is scalar(keys %seen), 1, 'all dupes';
done_testing;