File: Use-Crypt-Digest-for-Debian.patch

package info (click to toggle)
mojoshader 0.0~hg1314%2Bgit20250606.93d9d45%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,228 kB
  • sloc: ansic: 52,725; perl: 151; sh: 17; makefile: 11
file content (24 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/unit_tests/run_tests.pl b/unit_tests/run_tests.pl
index 73cd1b4..00a20e7 100755
--- a/unit_tests/run_tests.pl
+++ b/unit_tests/run_tests.pl
@@ -2,7 +2,7 @@
 
 use warnings;
 use strict;
-use Digest::SHA;
+use Crypt::Digest::SHA256;
 use Cwd;
 
 use FindBin qw($Bin);
@@ -28,8 +28,8 @@ sub compare_files {
         return (0, "Couldn't open '$b' for checksum");
     }
 
-    my $sha1 = Digest::SHA->new('sha256');
-    my $sha2 = Digest::SHA->new('sha256');
+    my $sha1 = Crypt::Digest::SHA256->new('sha256');
+    my $sha2 = Crypt::Digest::SHA256->new('sha256');
 
     if (not $endlines) {
         $sha1->addfile(*FILE1);