logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Math::Prime::Util::Entropy - Get a good random seed

Authors

       Dana Jacobsen <dana@acm.org>

Description

       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>

Name

       Math::Prime::Util::Entropy - Get a good random seed

See Also

       Math::Prime::Util Crypt::Random::Seed Bytes::Random::Secure Bytes::Random::Secure::Tiny Crypt::PRNG

Synopsis

Version

       Version 0.73

See Also