- SEE ALSO
- COPYRIGHT AND LICENCE
Crypt::Random::Source - Get weak or strong random data from pluggable sources
use Crypt::Random::Source qw(get_strong); # get 10 cryptographically strong random bytes from an available source my $bytes = get_strong(10);
This module provides implementations for a number of byte oriented sources of random data.
See Crypt::Random::Source::Factory for a more powerful way to locate sources, and the various sources for specific implementations.
These functions delegate to a source chosen by an instance of Crypt::Random::Source::Factory, calling get
In versions prior to 0.13,
rand could be used as a result of calling
get, if no random device was available. This implies that not explicitly asking for
get_strong on a non POSIX operating system (e.g. Win32 without the Win32 backend) could have resulted in non cryptographically random data.
Relatedly, the characterization of
urandom as a weak source of randomness is also largely a misconception, see https://www.2uo.de/myths-about-urandom/ for example.
יובל קוג'מן (Yuval Kogman) <email@example.com>
Karen Etheridge <firstname.lastname@example.org>
Florian Ragwitz <email@example.com>
Graham Knop <firstname.lastname@example.org>
David Pottage <email@example.com>
Max Kanat-Alexander <mkanat@es-compy.(none)>
Edward Betts <firstname.lastname@example.org>
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.