You're suggesting the class choose between a regular and test-friendly RNG, by calling one of two methods. Doesn't that put the decision with the class instead of externally? Right now it's already external. RandomUtils decides what to instantiate.
On Mon, Jan 18, 2010 at 2:21 PM, Drew Farris <drew.far...@gmail.com> wrote: > You get it entirelym Moving around the injection in this case produces > more testable code in that you don't have a class-defined behavior for > the RNG. Instead it becomes an externally-defined behavior.