logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Crypt::Random::Source::Factory - Load and instantiate sources of random data

Author

       XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>

Description

       This class implements a loading and instantiation factory for Crypt::Random::Source objects.

       If $ENV{CRYPT_RANDOM_NOT_PLUGGABLE} is set then only a preset list of sources will be tried. Otherwise
       Module::Find will be used to locate any installed sources, and use the first available one.

Methods

get%args
       Instantiate any random source, passing %args to the constructor.

       The "type" argument can be "weak", "strong" or "any".

   get_weak%argsget_strong%args
       Instantiate a new weak or strong random source.

Name

       Crypt::Random::Source::Factory - Load and instantiate sources of random data

Support

       Bugs may be submitted through the RT bug tracker
       <https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-Random-Source> (or
       bug-Crypt-Random-Source@rt.cpan.org <mailto:bug-Crypt-Random-Source@rt.cpan.org>).

Synopsis

           use Crypt::Random::Source::Factory;

           my $f = Crypt::Random::Source::Factory->new;

           my $strong = $f->get_strong;

           my $weak = $f->get_weak;

           my $any = $f->get;

Version

       version 0.14

See Also