> Hello all.
> My program hangs for several seconds after MersenneTwisterRNG()
> contructor:
>
> engine = new GenerationalEvolutionEngine<>(factory, pipeline, new
> CachingFitnessEvaluator<>(evaluator), new
> TournamentSelection(newProbability(0.9d)),
> *new MersenneTwisterRNG()*);
>
> Why is that?
It's probably due to the seeding of the RNG. If you don't specify a seed
strategy it will use the default. On Windows, where there is no
/dev/random, it will download seed data from random.org. This may be
taking some time or it may be failing to connect and taking a while to
time out. You could try using the SecureRandomSeedGenerator instead
(http://maths.uncommons.org/api/org/uncommons/maths/random/SecureRandomSeedGenerator.html).
Dan.
--
Daniel Dyer