Class ConcurrentCachedRLG

    • Constructor Detail

      • ConcurrentCachedRLG

        public ConcurrentCachedRLG​(RandomLongGenerator uniform)
        Construct a new instance which wraps the given random long generator and uses a cache which has 1000 entries per available core.
        Parameters:
        uniform - the underlying generator
    • Method Detail

      • seed

        public void seed​(long... seeds)
        Delegate to the underlying random long generator. Note: this method is NOT thread-safe.
        Specified by:
        seed in interface Seedable
        Parameters:
        seeds - the seeds