rngInstance is now located in BaseFrameworkSystem
[core.git] / inc / classes / main / helper / captcha / class_BaseCaptcha.php
index 9cef2076fb7cebc05b757fe2597198c94a4403f7..e619058853a594d28fbde4821afffb8a065d880a 100644 (file)
@@ -27,11 +27,6 @@ class BaseCaptcha extends BaseHelper {
         */
        private $helperInstance = null;
 
-       /**
-        * Instance of an RNG
-        */
-       private $rngInstance = null;
-
        /**
         * Protected constructor
         *
@@ -51,16 +46,7 @@ class BaseCaptcha extends BaseHelper {
         */
        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)));
        }
 
        /**