Class MixWithSuiteName
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.MixWithSuiteName
-
- All Implemented Interfaces:
SeedDecorator
public class MixWithSuiteName extends java.lang.Object implements SeedDecorator
ASeedDecorator
to be used withSeedDecorators
annotation to modify the masterRandomness
with a hash off the suite's class name.
-
-
Field Summary
Fields Modifier and Type Field Description private long
xorHash
-
Constructor Summary
Constructors Constructor Description MixWithSuiteName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
decorate(long seed)
Called to decorate the initial seed for aRandomness
.private long
fmix64(long k)
final mix from murmur hash 3.void
initialize(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: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.
-
-