From 8bd8c96abd098b16cf96f567049afaa8b005a3bf Mon Sep 17 00:00:00 2001 From: mcmonkey4eva Date: Mon, 29 Feb 2016 19:32:06 -0800 Subject: [PATCH] Correct pom, erroneous javadocs --- pom.xml | 2 +- .../java/net/citizensnpcs/util/XORShiftRNG.java | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 35bae4056..9f9f3240b 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ UTF-8 - 1.9-R0.1-SNAPSHOT + 1.9-SNAPSHOT 2.0.17-SNAPSHOT 1.5.4 1.4.12 diff --git a/src/main/java/net/citizensnpcs/util/XORShiftRNG.java b/src/main/java/net/citizensnpcs/util/XORShiftRNG.java index 2d434a688..ed205c1bb 100644 --- a/src/main/java/net/citizensnpcs/util/XORShiftRNG.java +++ b/src/main/java/net/citizensnpcs/util/XORShiftRNG.java @@ -22,17 +22,17 @@ import java.util.concurrent.locks.ReentrantLock; *

* Very fast pseudo random number generator. See * this page for a - * description. This RNG has a period of about 2^160, which is not as long as the {@link MersenneTwisterRNG} but it is + * description. This RNG has a period of about 2^160, which is not as long as the MersenneTwisterRNG but it is * faster. *

- * + * *

* NOTE: Because instances of this class require 160-bit seeds, it is not * possible to seed this RNG using the {@link #setSeed(long)} method inherited * from {@link Random}. Calls to this method will have no effect. * Instead the seed must be set by a constructor. *

- * + * * @author Daniel Dyer * @since 1.2 */ @@ -52,9 +52,6 @@ public class XORShiftRNG extends Random { /** * Creates an RNG and seeds it with the specified seed data. - * - * @param seed - * The seed data used to initialise the RNG. */ public XORShiftRNG() { this.seed = new byte[SEED_SIZE_BYTES]; @@ -105,7 +102,7 @@ public class XORShiftRNG extends Random { /** * Take four bytes from the specified position in the specified block and convert them into a 32-bit int, using the * big-endian convention. - * + * * @param bytes * The data to read from. * @param offset @@ -120,7 +117,7 @@ public class XORShiftRNG extends Random { /** * Convert an array of bytes into an array of ints. 4 bytes from the input data map to a single int in the output * data. - * + * * @param bytes * The data to read from. * @return An array of 32-bit integers constructed from the data. @@ -136,4 +133,4 @@ public class XORShiftRNG extends Random { } return ints; } -} \ No newline at end of file +}