-
-
10 Apr 2018 02:58:59 UTC
- Distribution: Crypt-Random-Source
- Module version: 0.14
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (1)
- Testers (3659 / 34 / 0)
- Kwalitee
Bus factor: 1- 75.11% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (35.51KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 6 contributors-
ΧΧΧΧ Χ§ΧΧ'ΧΧ (Yuval Kogman)
-
Florian Ragwitz
-
Graham Knop
-
David Pottage
-
Max Kanat-Alexander
-
Edward Betts
NAME
Crypt::Random::Source::Base - Abstract base class for Crypt::Random::Source classes
VERSION
version 0.14
SYNOPSIS
use Moo; extends qw(Crypt::Random::Source::Base);
DESCRIPTION
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 (or bug-Crypt-Random-Source@rt.cpan.org).
AUTHOR
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
COPYRIGHT AND LICENCE
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.
Module Install Instructions
To install Crypt::Random::Source, copy and paste the appropriate command in to your terminal.
cpanm Crypt::Random::Source
perl -MCPAN -e shell install Crypt::Random::Source
For more information on module installation, please visit the detailed CPAN module installation guide.