Math::Random::ISAAC::XS - C implementation of the ISAAC PRNG algorithm


Math-Random-ISAAC-XS documentation Contained in the Math-Random-ISAAC-XS distribution.

Index


Code Index:

NAME

Top

Math::Random::ISAAC::XS - C implementation of the ISAAC PRNG algorithm

VERSION

Top

version 1.004

SYNOPSIS

Top

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:

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();

DESCRIPTION

Top

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

METHODS

Top

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

SEE ALSO

Top

Math::Random::ISAAC

1;

BUGS

Top

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

Top

Jonathan Yu <jawnsy@cpan.org>

COPYRIGHT AND LICENSE

Top


Math-Random-ISAAC-XS documentation Contained in the Math-Random-ISAAC-XS distribution.

package Math::Random::ISAAC::XS;
BEGIN {
  $Math::Random::ISAAC::XS::VERSION = '1.004';
}
# ABSTRACT: C implementation of the ISAAC PRNG algorithm

use strict;
use warnings;


# This is the code that actually bootstraps the module and exposes
# the interface for the user. XSLoader is believed to be more
# memory efficient than DynaLoader.
use XSLoader;
XSLoader::load(__PACKAGE__, $Math::Random::ISAAC::XS::VERSION);


__END__