Math::Prime::Util::Entropy3pm
Get a good random seed
Version
Version 0.73
Overview
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.
entropy_bytes
Takes a number of bytes "n" and returns either undef (no good seed available) or a binary string with good entropy.
We try in order:
- the Win32 Crypto API- /dev/urandom- /dev/random- L<Crypt::Random::Seed>- L<Crypt::PRNG>
Releases
4 releases since Debian 10 (Buster); the text changed 3 times.