Class MixWithSuiteName
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.MixWithSuiteName
-
- All Implemented Interfaces:
SeedDecorator
public class MixWithSuiteName extends java.lang.Object implements SeedDecorator
ASeedDecoratorto be used withSeedDecoratorsannotation to modify the masterRandomnesswith a hash off the suite's class name.
-
-
Field Summary
Fields Modifier and Type Field Description private longxorHash
-
Constructor Summary
Constructors Constructor Description MixWithSuiteName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdecorate(long seed)Called to decorate the initial seed for aRandomness.private longfmix64(long k)final mix from murmur hash 3.voidinitialize(java.lang.Class<?> suiteClass)Called once after instantiation to set up the decorator.
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.Class<?> suiteClass)
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.
-
-