Math::Prime::Util::Entropy - Get a good random seed
Version 0.73
Provides a single method to get a good seed if possible. This is a streamlined version of Crypt::Random::Seed, with ideas from Bytes::Random::Secure::Tiny.
Takes a number of bytes n and returns either undef (no good seed available) or a binary string with good entropy.
n
We try in order:
- the Win32 Crypto API - /dev/urandom - /dev/random - L<Crypt::Random::Seed> - L<Crypt::PRNG>
Math::Prime::Util Crypt::Random::Seed Bytes::Random::Secure Bytes::Random::Secure::Tiny Crypt::PRNG
Dana Jacobsen <dana@acm.org>
Copyright 2017 by Dana Jacobsen <dana@acm.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Math::Prime::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Prime::Util
CPAN shell
perl -MCPAN -e shell install Math::Prime::Util
For more information on module installation, please visit the detailed CPAN module installation guide.