- public static final function createRandomNumberGenerator (FrameworkInterface $extraInstance = null) {
- // Get a new instance
- $rngInstance = new RandomNumberGenerator();
+ public static final function createRandomNumberGenerator (FrameworkInterface $extraInstance = NULL) {
+ // Is self instance set?
+ if (is_null(self::$selfInstance)) {
+ // Get a new instance
+ $rngInstance = new RandomNumberGenerator();
+
+ // Initialize the RNG now
+ $rngInstance->initRng($extraInstance);