Crypt::Random::Source::Base(3pm)

Crypt::Random::Source::Base3pm

Abstract base class for crypt::random::source classes

Usage

    use Moo;
    extends qw(Crypt::Random::Source::Base);

Version

version 0.14

Overview

This is an abstract base class.

In the future it will be a role.

Methods

get $n, %args

Gets $n random bytes and returns them as a string.

This method may produce fatal errors if the source was unable to provide enough data.

read $buf, $n, [ $off ]

This method is cannibalized from IO::Scalar. It provides an IO::Handle work-alike.

Note that subclasses override this to operate on a real handle directly if available.

seed @stuff

On supporting sources this method will add @stuff, whatever it may be, to the random seed.

Some sources may not support this, so be careful.

available

This is a class method, such that when it returns true calling "new" without arguments on the class should provide a working source of random data.

This is use by Crypt::Random::Source::Factory.

rank

This is a class method, with some futz value for a ranking, to help known good sources be tried before known bad (slower, less available) sources.

get_data %Params

Provided for compatibility with Crypt::Random

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-Random-Source> (or [email protected] <mailto:[email protected]>).

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12–13

Author

XXXX XXX'XX (Yuval Kogman) <[email protected]>

From libcrypt-random-source-perl 0.14-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.