mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Strict whitespace format, make private fields final that can be immutable
This commit is contained in:
@@ -5,7 +5,7 @@ package net.burtleburtle.bob.rand;
|
||||
* An implementation of the <a href="http://www.burtleburtle.net/bob/rand/isaacafa.html">ISAAC</a> psuedorandom number
|
||||
* generator.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* ------------------------------------------------------------------------------
|
||||
* Rand.java: By Bob Jenkins. My random number generator, ISAAC.
|
||||
@@ -20,7 +20,7 @@ package net.burtleburtle.bob.rand;
|
||||
* <p>
|
||||
* This class has been changed to be more conformant to Java and javadoc conventions.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @author Bob Jenkins
|
||||
*/
|
||||
public final class IsaacRandom {
|
||||
@@ -68,12 +68,12 @@ public final class IsaacRandom {
|
||||
/**
|
||||
* The internal state.
|
||||
*/
|
||||
private int[] mem;
|
||||
private final int[] mem;
|
||||
|
||||
/**
|
||||
* The results given to the user.
|
||||
*/
|
||||
private int[] rsl;
|
||||
private final int[] rsl;
|
||||
|
||||
/**
|
||||
* Creates the random number generator without an initial seed.
|
||||
@@ -86,7 +86,7 @@ public final class IsaacRandom {
|
||||
|
||||
/**
|
||||
* Creates the random number generator with the specified seed.
|
||||
*
|
||||
*
|
||||
* @param seed The seed.
|
||||
*/
|
||||
public IsaacRandom(int[] seed) {
|
||||
@@ -100,7 +100,7 @@ public final class IsaacRandom {
|
||||
|
||||
/**
|
||||
* Initialises this random number generator.
|
||||
*
|
||||
*
|
||||
* @param hasSeed Set to {@code true} if a seed was passed to the constructor.
|
||||
*/
|
||||
private void init(boolean hasSeed) {
|
||||
@@ -291,7 +291,7 @@ public final class IsaacRandom {
|
||||
|
||||
/**
|
||||
* Gets the next random value.
|
||||
*
|
||||
*
|
||||
* @return The next random value.
|
||||
*/
|
||||
public int nextInt() {
|
||||
|
||||
Reference in New Issue
Block a user