From: Manni H. <man...@us...> - 2005-02-24 01:39:27
|
Update of /cvsroot/popfile/engine/Classifier In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12026/Classifier Modified Files: Bayes.pm Log Message: Call makerandom_octet the way it is called in HTTP::start() and hope for the best. Index: Bayes.pm =================================================================== RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v retrieving revision 1.342 retrieving revision 1.343 diff -C2 -d -r1.342 -r1.343 *** Bayes.pm 23 Feb 2005 23:29:23 -0000 1.342 --- Bayes.pm 24 Feb 2005 01:39:15 -0000 1.343 *************** *** 42,46 **** use MIME::Base64; ! use Crypt::Random qw( makerandom_octet ); # This is used to get the hostname of the current machine --- 42,46 ---- use MIME::Base64; ! use Crypt::Random; # This is used to get the hostname of the current machine *************** *** 1444,1448 **** # get a random session key in hex ! my $random = makerandom_octet( Length => 128, Strength => 1 ); my $now = time; return sha256_hex( "$random$now" ); --- 1444,1448 ---- # get a random session key in hex ! my $random = Crypt::Random::makerandom_octet( Length => 128, Strength => 1 ); my $now = time; return sha256_hex( "$random$now" ); |