Skip to content

Commit

Permalink
also expose SplitMix64
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Mar 1, 2025
1 parent d5db149 commit a437fed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
* @see Random
*/
class SplitMix64Random extends Random {
public class SplitMix64Random extends Random {

private static final long serialVersionUID = 1L;
/** 2<sup>64</sup> &middot; &phi;, &phi; = (&#x221A;5 &minus; 1)/2. */
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/gregtech/api/util/random/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
* This package contains {@link java.util.Random} implementations from
* <a href="https://github.com/vigna/dsiutils">DSI Utilities</a>.
* <p>
* Currently, only {@link gregtech.api.util.random.XoShiRo256PlusPlusRandom} is exposed as {@code public} and should be
* Currently, {@link gregtech.api.util.random.XoShiRo256PlusPlusRandom} is exposed as {@code public} and should be
* superior to {@link java.util.Random} in effectively all scenarios.
* <p>
* Additionally, {@link gregtech.api.util.random.SplitMix64Random} is exposed for seeding
* {@link gregtech.api.util.random.XoShiRo256PlusPlusRandom} externally. It should not be used as a general-purpose
* PRNG.
*/
package gregtech.api.util.random;

0 comments on commit a437fed

Please sign in to comment.