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


Crypt-Random-Source documentation  | view source Contained in the Crypt-Random-Source distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    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;

DESCRIPTION

Top

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

Top

get %args

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

The type argument can be weak, strong or any.

get_weak %args

get_strong %args

Instantiate a new weak or strong random source.

AUTHOR

Top

  Yuval Kogman <nothingmuch@woobling.org>

COPYRIGHT AND LICENSE

Top


Crypt-Random-Source documentation  | view source Contained in the Crypt-Random-Source distribution.