RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.net.codec.IsaacCipher Class Reference

Public Member Functions

 IsaacCipher (int[] seed)
int getKey ()
void isaac ()
void init (boolean flag)

Detailed Description

An implementation of an ISAAC cipher. See http://en.wikipedia.org/wiki/ISAAC_(cipher) for more information.

This implementation is based on the one written by Bob Jenkins, which is available at http://www.burtleburtle.net/bob/java/rand/Rand.java.

Author
Graham Edgecombe

Definition at line 65 of file IsaacCipher.java.

Constructor & Destructor Documentation

◆ IsaacCipher()

com.osroyale.net.codec.IsaacCipher.IsaacCipher ( int[] seed)
inline

Creates the ISAAC cipher.

Parameters
seedThe seed.

Definition at line 122 of file IsaacCipher.java.

Member Function Documentation

◆ getKey()

int com.osroyale.net.codec.IsaacCipher.getKey ( )
inline

Gets the next value.

Returns
The next value.

Definition at line 134 of file IsaacCipher.java.

◆ init()

void com.osroyale.net.codec.IsaacCipher.init ( boolean flag)
inline

Initializes the ISAAC.

Parameters
flagFlag indicating if we should perform a second pass.

Definition at line 205 of file IsaacCipher.java.

◆ isaac()

void com.osroyale.net.codec.IsaacCipher.isaac ( )
inline

Generates 256 results.

Definition at line 145 of file IsaacCipher.java.


The documentation for this class was generated from the following file: