Interface StatefulRandomness

All Known Implementing Classes:
DiverRNG, GWTRNG, LightRNG, LinnormRNG, SilkRNG, ThrustAltRNG

public interface StatefulRandomness
Intended for compatibility with StatefulRandomness from SquidLib 3.x, this should be applied to LegacyRandom implementations that have one long value or two int values for state, and allow freely getting and setting those states. Optimally, all states should be allowed, but this doesn't have to be the case as long as setState(long) can correct an invalid state and set the state accordingly.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    setState(long state)
     
  • Method Details

    • getState

      long getState()
    • setState

      void setState(long state)