One thing that should be considered is how a deterministic seed can be injected during testing to make tests deterministic.
Mahout does this by providing a static method that returns a standard PRNG. During tests, that PRNG is seeded by a constant. During normal operation, the PRNG is seeded using system entropy from /dev/urandom (not /dev/random since we don't want to block waiting for initialization) On Thu, Jul 19, 2012 at 5:43 PM, Gilles Sadowski < gil...@harfang.homelinux.org> wrote: > On Wed, Jul 18, 2012 at 11:05:28PM +0200, Gilles Sadowski wrote: > > Hi. > > > > Cf. issues 764 and 823. > > > > What would be the preferred class to be used as the RNG in a > > distribution's default constructor? > > I somewhat arbitrarily chose "Well19937c". > Please open a JIRA if this is to be changed. > > > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >