Class MixWithSuiteName
java.lang.Object
com.carrotsearch.randomizedtesting.MixWithSuiteName
- All Implemented Interfaces:
SeedDecorator
A
SeedDecorator
to be used with SeedDecorators
annotation
to modify the master Randomness
with a hash off the suite's class name.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
decorate
(long seed) Called to decorate the initial seed for aRandomness
.private long
fmix64
(long k) final mix from murmur hash 3.void
initialize
(Class<?> suiteClass) Called once after instantiation to set up the decorator.
-
Field Details
-
xorHash
private long xorHash
-
-
Constructor Details
-
MixWithSuiteName
public MixWithSuiteName()
-
-
Method Details
-
initialize
Description copied from interface:SeedDecorator
Called once after instantiation to set up the decorator.- Specified by:
initialize
in interfaceSeedDecorator
-
decorate
public long decorate(long seed) Description copied from interface:SeedDecorator
Called to decorate the initial seed for aRandomness
.- Specified by:
decorate
in interfaceSeedDecorator
-
fmix64
private long fmix64(long k) final mix from murmur hash 3.
-