Crypt::Random::Source::Weak::rand - Use rand to create random bytes.
rand
use Crypt::Random::Source::Weak::rand; my $p = Crypt::Random::Source::Weak::rand->new; $p->get(1024);
This is a weak source of random data, that uses Perl's builtin rand function.
Sets the random seed to a checksum of the stringified values of @blah.
@blah
There is no need to call this method unless you want the random sequence to be identical to a previously run, in which case you should seed with the same value.
Produces $n random bytes.
$n
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.