/[smeserver]/rpms/e-smith-lib/sme8/e-smith-lib-1.18.0-urandom.patch
ViewVC logotype

Annotation of /rpms/e-smith-lib/sme8/e-smith-lib-1.18.0-urandom.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed Aug 20 21:25:31 2008 UTC (16 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New dev stream

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-lib-1.18.0/root/usr/lib/perl5/site_perl/esmith/util.pm mezzanine_patched_e-smith-lib-1.18.0/root/usr/lib/perl5/site_perl/esmith/util.pm
2     --- e-smith-lib-1.18.0/root/usr/lib/perl5/site_perl/esmith/util.pm 2008-08-09 18:52:53.000000000 -0600
3     +++ mezzanine_patched_e-smith-lib-1.18.0/root/usr/lib/perl5/site_perl/esmith/util.pm 2008-08-09 18:52:39.000000000 -0600
4     @@ -840,19 +840,19 @@
5    
6     use MIME::Base64 qw(encode_base64);
7    
8     - unless ( open( RANDOM, "/dev/random" ) )
9     + unless ( open( RANDOM, "/dev/urandom" ) )
10     {
11     - warn "Could not open /dev/random: $!";
12     + warn "Could not open /dev/urandom: $!";
13     return undef;
14     }
15    
16     my $buf = "not set";
17    
18     # 57 bytes is a full line of Base64 coding, and contains
19     - # 456 bits of randomness - given a perfectly random /dev/random
20     + # 456 bits of randomness - given a perfectly random /dev/urandom
21     if ( read( RANDOM, $buf, 57 ) != 57 )
22     {
23     - warn("Short read from /dev/random: $!");
24     + warn("Short read from /dev/urandom: $!");
25     return undef;
26     }
27     close RANDOM;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed