It is also desirable to have a way to inject a test generator so that test cases can be made deterministic.
In Mahout, we did this by having a static method in a utility class for getting a standard generator for either testing or normal operation. This has turned out very well. +1 on using a better default generator. On Tue, Nov 16, 2010 at 1:16 PM, Luc Maisonobe <luc.maison...@free.fr>wrote: > I would also like to have one generator for each instance > set up at construction time. I also think JDKRandomGenerator is probably > not a good default and one of the more modern generators we now have > could be used like Well19937c. >