Class FastSourceOfRandomness
java.lang.Object
com.pholser.junit.quickcheck.random.SourceOfRandomness
edu.berkeley.cs.jqf.fuzz.junit.quickcheck.FastSourceOfRandomness
A source of randomness with better performance but looser
statistical guarantees.
This class is meant for use with guided fuzzing, where the
Random delegate is usually a StreamBackedRandom.
In this case, the random source does not have to give any
statistical guarantees such as uniformity or independentness,
and therefore is amenable to several optimizations, which are
implemented in this class.- Author:
- Rohan Padhye
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pholser.junit.quickcheck.random.SourceOfRandomness
choose, choose, delegate, nextBigInteger, nextBoolean, nextBytes, nextBytes, nextDouble, nextDouble, nextDuration, nextFloat, nextFloat, nextGaussian, nextInstant, nextInt, nextInt, nextLong, seed, setSeed
-
Constructor Details
-
FastSourceOfRandomness
-
-
Method Details
-
toJDKRandom
- Overrides:
toJDKRandomin classSourceOfRandomness
-
nextByte
public byte nextByte(byte min, byte max) - Overrides:
nextBytein classSourceOfRandomness
-
nextShort
public short nextShort(short min, short max) - Overrides:
nextShortin classSourceOfRandomness
-
nextChar
public char nextChar(char min, char max) - Overrides:
nextCharin classSourceOfRandomness
-
nextInt
public int nextInt(int min, int max) - Overrides:
nextIntin classSourceOfRandomness
-
nextLong
public long nextLong(long min, long max) - Overrides:
nextLongin classSourceOfRandomness
-