File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
engine/core/src/main/java/com/codingame/gameengine/core Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,26 @@ public int getPlayerCount() {
8585
8686 /**
8787 * <p>
88- * The seed is used to generated parameters such as width and height.<br>
89- * If a seed is present in the given input, the input value should override the generated values.
88+ * The seed is used to initialize the Random number generator.<br>
89+ * If a seed is present in the given input, the input value should override the generated values.<br>
90+ *
91+ * The seed should NOT be used directly in referee but through the random number generator provided by @method getRandom
9092 * </p>
9193 *
9294 * @return an <code>long</code> containing a given or generated seed.
9395 */
94- @ Deprecated
9596 public long getSeed () {
9697 return seed ;
9798 }
9899
100+ /**
101+ * <p>
102+ * The random generator is used to generated parameters such as width and height.<br>
103+ * The provided random generator is a SecureRandom using the SHAPRNG algorithm.<br>
104+ * </p>
105+ *
106+ * @return an <code>Random</code> containing a given or generated seed.
107+ */
99108 public Random getRandom () {
100109 return random ;
101110 }
You can’t perform that action at this time.
0 commit comments