Skip to content

Commit

Permalink
Increase unique name length
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 19, 2024
1 parent 55164c1 commit 1685107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cavil/Task/Analyze.pm
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ sub _find_report_summary ($db, $chksum) {
# try to find a unique name for the checksum
my $chars = ['a' .. 'z', 'A' .. 'Z', '0' .. '9'];
while (1) {
my $shortname = join('', map { $chars->[rand @$chars] } 1 .. 4);
my $shortname = join('', map { $chars->[rand @$chars] } 1 .. 6);
$db->query(
'insert into report_checksums (checksum, shortname)
values (?,?) on conflict do nothing', $chksum, $shortname
Expand Down

0 comments on commit 1685107

Please sign in to comment.