Not quite, and you have a good point. Each instance of an RNG is
seeded identically when testing. But if something holds an RNG open
across tests, it won't be reset somehow. I could imagine that if
there's a static RNG somewhere in a class, which would be reasonable.
(Or if a test isn't quite using setUp() properly vis-a-vis RNGs, but
that's fixable.)

I can imagine some semi-elaborate ways to actually explicitly manage
and address this with a wrapper class.

On Mon, Jan 18, 2010 at 1:39 AM, Ted Dunning <ted.dunn...@gmail.com> wrote:
> Do the RandomUtils reset the seed for every test as desired?

Reply via email to