| Crypt-Random-Source documentation | view source | Contained in the Crypt-Random-Source distribution. |
Crypt::Random::Source::Weak::rand - Use rand to create random bytes
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.
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.
Yuval Kogman <nothingmuch@woobling.org>
This software is copyright (c) 2011 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.
| Crypt-Random-Source documentation | view source | Contained in the Crypt-Random-Source distribution. |