Class AntithesisRandom

java.lang.Object
java.util.Random
com.antithesis.sdk.AntithesisRandom
All Implemented Interfaces:
Serializable, RandomGenerator

public class AntithesisRandom extends Random
A subclass of java.util.Random that draws from Random.
See Also:
  • Constructor Details

    • AntithesisRandom

      public AntithesisRandom()
  • Method Details

    • next

      protected int next(int bits)
      Overrides:
      next in class Random
    • setSeed

      public void setSeed(long seed)
      Overrides:
      setSeed in class Random
    • nextGaussian

      public double nextGaussian()
      Draws a standard-normal value using the Marsaglia-Tsang ziggurat method. Unlike Random.nextGaussian(), this is stateless to ensure that draws after the Antithesis fuzzer has reseeded randomness reflect that new entropy.
      Specified by:
      nextGaussian in interface RandomGenerator
      Overrides:
      nextGaussian in class Random