Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

math::random::isaac::pp(3pm) [debian man page]

Math::Random::ISAAC::PP(3pm)				User Contributed Perl Documentation			      Math::Random::ISAAC::PP(3pm)

NAME
Math::Random::ISAAC::PP - Pure Perl port of the ISAAC PRNG algorithm VERSION
version 1.003 SYNOPSIS
This module implements the same interface as "Math::Random::ISAAC" and can be used as a drop-in replacement. However, it is recommended that you let the "Math::Random::ISAAC" module decide whether to use the PurePerl or XS version of this module, instead of choosing manually. Selecting the backend to use manually really only has two uses: o If you are trying to avoid the small overhead incurred with dispatching method calls to the appropriate backend modules. o If you are testing the module for performance and wish to explicitly decide which module you would like to use. Example code: # With Math::Random::ISAAC my $rng = Math::Random::ISAAC->new(time); my $rand = $rng->rand(); # With Math::Random::ISAAC::PP my $rng = Math::Random::ISAAC::PP->new(time); my $rand = $rng->rand(); DESCRIPTION
See Math::Random::ISAAC for the full description. METHODS
new Math::Random::ISAAC::PP->new( @seeds ) Implements the interface as specified in "Math::Random::ISAAC" rand $rng->rand() Implements the interface as specified in "Math::Random::ISAAC" irand $rng->irand() Implements the interface as specified in "Math::Random::ISAAC" SEE ALSO
Math::Random::ISAAC BUGS
Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Random-ISAAC When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. AUTHOR
Jonathan Yu <jawnsy@cpan.org> COPYRIGHT AND LICENSE
Legally speaking, this package and its contents are: Copyright (c) 2011 by Jonathan Yu <jawnsy@cpan.org>. But this is really just a legal technicality that allows the author to offer this package under the public domain and also a variety of licensing options. For all intents and purposes, this is public domain software, which means you can do whatever you want with it. The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. perl v5.10.1 2011-02-13 Math::Random::ISAAC::PP(3pm)

Check Out this Related Man Page

Random(3pm)						User Contributed Perl Documentation					       Random(3pm)

NAME
Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries Crypt::OpenSSL::Random - Routines for accessing the OpenSSL pseudo-random number generator SYNOPSIS
use Crypt::OpenSSL::Random; Crypt::OpenSSL::Random::random_seed($good_random_data); Crypt::OpenSSL::Random::random_egd("/tmp/entropy"); Crypt::OpenSSL::Random::random_status() or die "Unable to sufficiently seed the random number generator". my $ten_good_random_bytes = Crypt::OpenSSL::Random::random_bytes(10); my $ten_ok_random_bytes = Crypt::OpenSSL::Random::random_pseudo_bytes(10); DESCRIPTION
Crypt::OpenSSL::Random provides the ability to seed and query the OpenSSL library's pseudo-random number generator EXPORT None by default. Static Methods random_bytes This function, returns a specified number of cryptographically strong pseudo-random bytes from the PRNG. If the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence, then a false value is returned. random_pseudo_bytes This function, is similar to c<random_bytes>, but the resulting sequence of bytes are not necessarily unpredictable. They can be used for non-cryptographic purposes and for certain purposes in cryptographic protocols, but usually not for key generation etc. random_seed This function seeds the PRNG with a supplied string of bytes. It returns true if the PRNG has sufficient seeding. Note: calling this function with non-random bytes is of limited value at best! random_egd This function seeds the PRNG with data from the specified entropy gathering daemon. Returns the number of bytes read from the daemon on succes, or -1 if not enough bytes were read, or if the connection to the daemon failed. random_status This function returns true if the PRNG has sufficient seeding. BUGS
Because of the internal workings of OpenSSL's random library, the pseudo-random number generator (PRNG) accessed by Crypt::OpenSSL::Random will be different than the one accessed by any other perl module. Hence, to use a module such as Crypt::OpenSSL::Random, you will need to seed the PRNG used there from one used here. This class is still advantageous, however, as it centralizes other methods, such as random_egd, in one place. AUTHOR
Ian Robertson, iroberts@cpan.com SEE ALSO
perl(1), rand(3), RAND_add(3), RAND_egd(3), RAND_bytes(3). POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 62: '=item' outside of any '=over' Around line 93: You forgot a '=back' before '=head1' perl v5.14.2 2007-05-20 Random(3pm)
Man Page