[packages/perl-Crypt-OpenPGP] - typo

adwol adwol at pld-linux.org
Sat Sep 29 13:11:19 CEST 2018


commit a39892d2103568ce377640c603c96a2087c3aecd
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Sat Sep 29 13:10:30 2018 +0200

    - typo

 perl-Crypt-OpenPGP-openssl.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/perl-Crypt-OpenPGP-openssl.patch b/perl-Crypt-OpenPGP-openssl.patch
index 2d2d547..697f9ab 100644
--- a/perl-Crypt-OpenPGP-openssl.patch
+++ b/perl-Crypt-OpenPGP-openssl.patch
@@ -28,7 +28,7 @@ diff -ruN Crypt-OpenPGP-1.12.orig/lib/Crypt/OpenPGP/Util.pm Crypt-OpenPGP-1.12/l
  	my $bits = shift;
 -	if (eval 'require Crypt::Random; 1;') {
 +	if (eval 'require Crypt::OpenSSL::Random; 1;') {
-+		my $hex = unpack('H*', Crypt::OpenSSL::Random::random_bytes(int(($bits + 7) / 8));
++		my $hex = unpack('H*', Crypt::OpenSSL::Random::random_bytes(int(($bits + 7) / 8)));
 +		my $val = Math::BigInt->new("0x$hex");
 +		# Get exactly the correct number of bits.
 +		$val->brsft(8 - ($bits & 7)) if ($bits & 7);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Crypt-OpenPGP.git/commitdiff/a39892d2103568ce377640c603c96a2087c3aecd



More information about the pld-cvs-commit mailing list