*/
private $helperInstance = null;
- /**
- * Instance of an RNG
- */
- private $rngInstance = null;
-
/**
* Protected constructor
*
*/
protected final function initializeRandomNumberGenerator (FrameworkInterface $extraInstance = null) {
// Get an RNG from factory
- $this->rngInstance = ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance));
- }
-
- /**
- * Getter for RNG instance
- *
- * @return $rngInstance An instance of a random number generator (RNG)
- */
- public final function getRngInstance () {
- return $this->rngInstance;
+ $this->setRngInstance(ObjectFactory::createObjectByConfiguredName('rng_class', array($extraInstance)));
}
/**