Man pages sections > man3 > Crypt::Random::Source::Weak::rand

Crypt::Random::Source::Weak::rand - Use "rand" to create random bytes

Crypt::Random::Source::Weak::rand(3pm) User Contributed Perl Documentation Crypt::Random::Source::Weak::rand(3pm)


Crypt::Random::Source::Weak::rand - Use "rand" to create random bytes


version 0.12


    use Crypt::Random::Source::Weak::rand;
    my $p = Crypt::Random::Source::Weak::rand->new;


This is a weak source of random data, that uses Perl's builtin "rand" function.


seed @blah

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.

get $n

Produces $n random bytes.


Bugs may be submitted through the RT bug tracker <> (or <>).


XXXX XXX'XX (Yuval Kogman) <> 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.
2017-10-24 perl v5.26.0