Class JavaRNG

    • Constructor Detail

      • JavaRNG

        public JavaRNG()
        Creates a new RNG and seeds it using the default seeding strategy.
      • JavaRNG

        public JavaRNG​(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.
      • JavaRNG

        public JavaRNG​(byte[] seed)
        Creates an RNG and seeds it with the specified seed data.
        Parameters:
        seed - The seed data used to initialise the RNG.
    • Method Detail

      • getSeed

        public byte[] getSeed()
        Specified by:
        getSeed in interface RepeatableRNG
        Returns:
        The seed data used to initialise this pseudo-random number generator.