On Mon, Jan 18, 2010 at 9:42 AM, Sean Owen <sro...@gmail.com> wrote:

> You can punt the choice all the way up to fix that. Then regular
> callers are forced to instantiate and supply the RNG in all cases, and
> the API has Randoms all over the place, and I suppose I don't quite
> like that aesthetically.

Point taken. I suspect there may be ways around this ugliness in many
cases, but you certainly know the code infinitely better than I do.

>> RandomUtils.useTestSeed() is called once in a VM all other callers of
>> RandomUtils.getRandom() will get a test seed.
>
> ... yep and I think this is cleaner than the option above. That may be
> the only delta between what we're saying.

Yes, this is the only difference. Thanks for taking the time to
understand my point of view and taking steps to resolve the slowness
issue. Both are very much appreciated.

Drew

Reply via email to