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 TypeMethodDescriptionlongdecorate(long seed) Called to decorate the initial seed for aRandomness.private longfmix64(long k) final mix from murmur hash 3.voidinitialize(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:SeedDecoratorCalled once after instantiation to set up the decorator.- Specified by:
initializein interfaceSeedDecorator
-
decorate
public long decorate(long seed) Description copied from interface:SeedDecoratorCalled to decorate the initial seed for aRandomness.- Specified by:
decoratein interfaceSeedDecorator
-
fmix64
private long fmix64(long k) final mix from murmur hash 3.
-