Skip to content

Commit

Permalink
run_test.pl: Move from Digest::SHA1 to Digest::SHA.
Browse files Browse the repository at this point in the history
Apparently this is newer, and Ubuntu still has a package for it.
  • Loading branch information
icculus committed Jun 1, 2022
1 parent 335f92c commit 97fd2e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unit_tests/run_tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use warnings;
use strict;
use Digest::SHA1;
use Digest::SHA;
use Cwd;

use FindBin qw($Bin);
Expand All @@ -28,8 +28,8 @@ sub compare_files {
return (0, "Couldn't open '$b' for checksum");
}

my $sha1 = Digest::SHA1->new;
my $sha2 = Digest::SHA1->new;
my $sha1 = Digest::SHA->new('sha256');
my $sha2 = Digest::SHA->new('sha256');

if (not $endlines) {
$sha1->addfile(*FILE1);
Expand Down

0 comments on commit 97fd2e2

Please sign in to comment.