Crypt::Random::Source::Factory - Load and instantiate sources of random data
version 0.14
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;
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.
$ENV{CRYPT_RANDOM_NOT_PLUGGABLE}
Instantiate any random source, passing %args to the constructor.
The type argument can be weak, strong or any.
type
weak
strong
any
Instantiate a new weak or strong random source.
Bugs may be submitted through the RT bug tracker (or bug-Crypt-Random-Source@rt.cpan.org).
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
This software is copyright (c) 2008 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Crypt::Random::Source, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Random::Source
CPAN shell
perl -MCPAN -e shell install Crypt::Random::Source
For more information on module installation, please visit the detailed CPAN module installation guide.