Class MixWithSuiteName

java.lang.Object
com.carrotsearch.randomizedtesting.MixWithSuiteName
All Implemented Interfaces:
SeedDecorator

public class MixWithSuiteName extends Object implements SeedDecorator
A SeedDecorator to be used with SeedDecorators annotation to modify the master Randomness with a hash off the suite's class name.
  • Field Details

    • xorHash

      private long xorHash
  • Constructor Details

    • MixWithSuiteName

      public MixWithSuiteName()
  • Method Details

    • initialize

      public void initialize(Class<?> suiteClass)
      Description copied from interface: SeedDecorator
      Called once after instantiation to set up the decorator.
      Specified by:
      initialize in interface SeedDecorator
    • decorate

      public long decorate(long seed)
      Description copied from interface: SeedDecorator
      Called to decorate the initial seed for a Randomness.
      Specified by:
      decorate in interface SeedDecorator
    • fmix64

      private long fmix64(long k)
      final mix from murmur hash 3.