1Crypt::Random::Source::UBsaesre(C3o)ntributed Perl DocumCernytpatt:i:oRnandom::Source::Base(3)
2
3
4

NAME

6       Crypt::Random::Source::Base - Abstract base class for
7       Crypt::Random::Source classes
8

SYNOPSIS

10           use Moose;
11           extends qw(Crypt::Random::Source::Base);
12

DESCRIPTION

14       This is an abstract base class.
15
16       In the future it will be a role.
17

METHODS

19   get $n, %args
20       Gets $n random bytes and returns them as a string.
21
22       This method may produce fatal errors if the source was unable to
23       provide enough data.
24
25   read $buf, $n, [ $off ]
26       This method is cannibalized from IO::Scalar. It provides an IO::Handle
27       work-alike.
28
29       Note that subclasses override this to operate on a real handle directly
30       if available.
31
32   seed @stuff
33       On supporting sources this method will add @stuff, whatever it may be,
34       to the random seed.
35
36       Some sources may not support this, so be careful.
37
38   available
39       This is a class method, such that when it returns true calling "new"
40       without arguments on the class should provide a working source of
41       random data.
42
43       This is use by Crypt::Random::Source::Factory.
44
45   rank
46       This is a class method, with some futz value for a ranking, to help
47       known good sources be tried before known bad (slower, less available)
48       sources.
49
50   get_data %Params
51       Provided for compatibility with Crypt::Random
52

AUTHOR

54         Yuval Kogman <nothingmuch@woobling.org>
55
57       This software is copyright (c) 2011 by Yuval Kogman.
58
59       This is free software; you can redistribute it and/or modify it under
60       the same terms as the Perl 5 programming language system itself.
61
62
63
64perl v5.12.3                      2011-01-05    Crypt::Random::Source::Base(3)
Impressum