24package com.runehive.net.codec;
41 private static final int RATIO = 0x9e3779b9;
56 private static final int MASK = (
SIZE - 1) << 2;
94 for (
int i = 0; i < seed.length; i++) {
119 for (i = 0, j =
SIZE / 2; i <
SIZE / 2; ) {
144 for (j = 0; j <
SIZE / 2; ) {
176 public void init(
boolean flag) {
178 int a,
b,
c, d, e, f, g, h;
179 a =
b =
c = d = e = f = g = h =
RATIO;
180 for (i = 0; i < 4; ++i) {
206 for (i = 0; i <
SIZE; i += 8) {
251 for (i = 0; i <
SIZE; i += 8) {
void init(boolean flag)
Initializes the ISAAC.
static final int SIZE_LOG
The log of the size of the results and memory arrays.
int memory[]
The internal memory state.
int results[]
The results.
int count
The count through the results.
static final int MASK
For pseudorandom lookup.
static final int RATIO
The golden ratio.
int getKey()
Gets the next value.
void isaac()
Generates 256 results.
IsaacCipher(int[] seed)
Creates the ISAAC cipher.
static final int SIZE
The size of the results and memory arrays.