Code Monkey home page Code Monkey logo

math-random-isaac's Introduction

Math::Random::ISAAC

Travis CI Build Status AppVeyor CI Build Status Code Coverage

Introduction

ISAAC (Indirection, Shift, Accumulate, Add, and Count) is a Cryptographically Secure Pseudorandom Number Generator (CSPRNG) that quickly produces high-quality random data. The results are uniformly distributed, unbiased, and unpredictable unless you know the seed. Despite this, the algorithm is very fast: on average, it requires only 18.75 processor cycles to generate each 32-bit value. As a result, ISAAC is suitable for applications where a significant amount of random data needs to be produced quickly, such as solving using the Monte Carlo method or for games.

The algorithm was published by Bob Jenkins in 1996, along with a reference implementation, and despite the best efforts of many security researchers, no feasible attacks have been identified to date. For more information, see the algorithm description and reference implementation.

Usage

use Math::Random::ISAAC;

my $rng = Math::Random::ISAAC->new(@seeds);

for (0..30) {
  print 'Result: ' . $rng->irand() . "\n";
}

Copyright and License

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

The author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

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.

For more details, see perldoc Math::Random::ISAAC or view it online on MetaCPAN.

math-random-isaac's People

Contributors

jawnsy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.