Crypt-URandom
view release on metacpan or search on metacpan
lib/Crypt/URandom.pm view on Meta::CPAN
The module was unable to load the SystemFunction036 function from the
advapi32 dynamic library.
=item C<The length argument must be supplied and must be an integer>
The get method must be called with an integer argument to describe how many
random bytes are required.
=item C<CryptGenRandom failed>
The Windows 2000 CryptGenRandom method call failed to generate the required
amount of randomness
=item C<RtlGenRand failed>
=for stopwords RtlGenRand
The post Windows 2000 RtlGenRand method call failed to generate the required
amount of randomness
=item C<Only read n bytes from path>
The /dev/urandom device did not return the desired amount of random bytes
=item C<Failed to read from path>
The /dev/urandom device returned an error when being read from
=item C<Failed to open path>
The /dev/urandom device returned an error when being opened
=back
=head1 CONFIGURATION AND ENVIRONMENT
Crypt::URandom requires no configuration files or environment variables.
If the environment variable CRYPT_URANDOM_BUILD_DEBUG is specified when
running C<perl Makefile.PL> or C<make test> AND L<getrandom(2)> or it's
equivalents cannot be detected, extra debug will be shown to show the
failures to detect these functions.
=head1 DEPENDENCIES
=over
=for stopwords perl
If the platform is Win32, the Win32::API module will be required. Otherwise
no other modules other than those provided by perl will be required
=back
=head1 INCOMPATIBILITIES
None reported.
=head1 BUGS AND LIMITATIONS
To report a bug, or view the current list of bugs, please visit L<https://github.com/david-dick/crypt-urandom/issues>
=head1 AUTHOR
David Dick C<< <ddick@cpan.org> >>
=for stopwords ACKNOWLEDGEMENTS
=head1 ACKNOWLEDGEMENTS
=for stopwords CryptoAPI Kanat-Alexander
The Win32::API code for interacting with Microsoft's L<CryptoAPI|https://en.wikipedia.org/wiki/Microsoft_CryptoAPI> was copied with extreme
gratitude from L<Crypt::Random::Source::Strong::Win32|Crypt::Random::Source::Strong::Win32> by L<Max Kanat-Alexander|https://metacpan.org/author/MKANAT>
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2025, David Dick C<< <ddick@cpan.org> >>. All rights reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=head1 DISCLAIMER OF WARRANTY
=for stopwords MERCHANTABILITY LICENCE
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
( run in 1.798 second using v1.01-cache-2.11-cpan-39bf76dae61 )