Class AddRedundancy.SimplePrng

java.lang.Object
net.messagevortex.router.operation.AddRedundancy.SimplePrng
All Implemented Interfaces:
Prng
Enclosing class:
AddRedundancy

public static class AddRedundancy.SimplePrng extends Object implements Prng

Wrapper for the java random number generator (not normative).

  • Constructor Details

    • SimplePrng

      public SimplePrng()
    • SimplePrng

      public SimplePrng(long seed)
  • Method Details

    • nextByte

      public byte nextByte()

      Get the next random byte of the Prng.

      Specified by:
      nextByte in interface Prng
      Returns:
      the next random byte
    • reset

      public void reset()

      Resets the Prng to the initially seeded state.

      Specified by:
      reset in interface Prng