2010/1/17 Benson Margulies <bimargul...@gmail.com>: >> I don't know of any further issues with MersenneTwisterRNG though -- >> what's the issue? Don't care what it does with /dev/random as long as >> in test mode we are seeding it with the same seed, and that's what >> > > Olivier and I found the Mersenne code touching the > SecureRandomNumberGenerator, which goes and talks to /dev/random, all > in static blocks before any seeds are used. >
I am not 100% that the SecureRandom() constructor that is called in the static part of the uncommons math packagte is actually doing any blocking call to /dev/random on linux. I would have thought that this is only the case when calling the generateSeed method called by the MersenneTwisterRNG constructor iwhen called by RandomUtils.getRandom() throughout Mahout components if RandomUtils. useTestSeed() is not called first. Maybe this is not the case. I will try to connect the eclipse debugger to investigate further. -- Olivier http://twitter.com/ogrisel - http://code.oliviergrisel.name