Class XorShiftRandom

    • Constructor Detail

      • XorShiftRandom

        public XorShiftRandom​(byte[] seed)
        Creates an RNG and seeds it with the specified seed data.
        Parameters:
        seed - 20 bytes of seed data used to initialize the RNG.
      • XorShiftRandom

        public XorShiftRandom​(SeedGenerator seedGenerator)
                       throws SeedException
        Seed the RNG using the provided seed generation strategy.
        Parameters:
        seedGenerator - The seed generation strategy that will provide the seed value for this RNG.
        Throws:
        SeedException - if there is a problem generating a seed.