1Crypt::Random::Source::UBsaesre(C3opnmt)ributed Perl DocCurmyepntt:a:tRiaonndom::Source::Base(3pm)
2
3
4
6 Crypt::Random::Source::Base - Abstract base class for
7 Crypt::Random::Source classes
8
10 version 0.14
11
13 use Moo;
14 extends qw(Crypt::Random::Source::Base);
15
17 This is an abstract base class.
18
19 In the future it will be a role.
20
22 get $n, %args
23 Gets $n random bytes and returns them as a string.
24
25 This method may produce fatal errors if the source was unable to
26 provide enough data.
27
28 read $buf, $n, [ $off ]
29 This method is cannibalized from IO::Scalar. It provides an IO::Handle
30 work-alike.
31
32 Note that subclasses override this to operate on a real handle directly
33 if available.
34
35 seed @stuff
36 On supporting sources this method will add @stuff, whatever it may be,
37 to the random seed.
38
39 Some sources may not support this, so be careful.
40
41 available
42 This is a class method, such that when it returns true calling "new"
43 without arguments on the class should provide a working source of
44 random data.
45
46 This is use by Crypt::Random::Source::Factory.
47
48 rank
49 This is a class method, with some futz value for a ranking, to help
50 known good sources be tried before known bad (slower, less available)
51 sources.
52
53 get_data %Params
54 Provided for compatibility with Crypt::Random
55
57 Bugs may be submitted through the RT bug tracker
58 <https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-Random-Source>
59 (or bug-Crypt-Random-Source@rt.cpan.org <mailto:bug-Crypt-Random-
60 Source@rt.cpan.org>).
61
63 XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
64
66 This software is copyright (c) 2008 by Yuval Kogman.
67
68 This is free software; you can redistribute it and/or modify it under
69 the same terms as the Perl 5 programming language system itself.
70
71
72
73perl v5.28.0 2018-04-10 Crypt::Random::Source::Base(3pm)