Math::Random::ISAAC::XS(3pm)

Math::Random::ISAAC::XS3pm

C implementation of the isaac prng algorithm

Usage

This module implements the same interface as "Math::Random::ISAAC" and can be used as a drop-in replacement. This is the recommended implementation of the module, based on Bob Jenkins' reference implementation in C.

Selecting the backend to use manually really only has two uses:

•

If you are trying to avoid the small overhead incurred with dispatching method calls to the appropriate backend modules.

•

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::XS
  my $rng = Math::Random::ISAAC::XS->new(time);
  my $rand = $rng->rand();

Version

version 1.004

Overview

See Math::Random::ISAAC for the full description.

Methods

new

  Math::Random::ISAAC::XS->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"

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Bugs

Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Random-ISAAC-XS

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 <[email protected]>

From libmath-random-isaac-xs-perl 1.004-3+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.