Author: Salvatore Bonaccorso Description: Use Digest::SHA instead of Digest::SHA1. --- a/lib/MasonX/Request/WithMultiSession.pm +++ b/lib/MasonX/Request/WithMultiSession.pm @@ -2,7 +2,7 @@ use strict; -use Digest::SHA1 (); +use Digest::SHA (); use Time::HiRes; use base qw(MasonX::Request::WithApacheSession); @@ -114,7 +114,7 @@ # using Time::HiRes means that we get times with very high # floating point resolutions (to 10 or 11 decimal places), so # this is a good seed for a hashing algorithm - $new_id = Digest::SHA1::sha1_hex( time() . {} . rand() . $$ ); + $new_id = Digest::SHA::sha1_hex( time() . {} . rand() . $$ ); } while ( exists $session->{sub_session_ids}{$new_id} ); $session->{sub_sessions}{$new_id} = {};