diff --git a/lib/Crypt/PWSafe3.pm b/lib/Crypt/PWSafe3.pm index 5e60c83..7f09238 100644 --- a/lib/Crypt/PWSafe3.pm +++ b/lib/Crypt/PWSafe3.pm @@ -34,7 +34,10 @@ use Crypt::PWSafe3::SHA256; # install a wrapper closure around the # one we found. BEGIN { - eval { require Bytes::Random::Secure }; + eval { + require Bytes::Random::Secure; + Bytes::Random::Secure->import("random_bytes"); + }; if ($@) { # well, didn' work, use slow function eval { require Crypt::Random; };# qw( makerandom ); };