]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/rng/class_RandomNumberGenerator.php
Continued:
[core.git] / framework / main / classes / rng / class_RandomNumberGenerator.php
index e1a34ea8849b63cf2914f0dec618aea6c15284ca..25c4c2c99e81f39ebe5818fa7a583ae0c15bd79a 100644 (file)
@@ -130,11 +130,11 @@ class RandomNumberGenerator extends BaseFrameworkSystem {
                        $this->fixedSalt = sha1(
                                $serverIp . ':' .
                                $extraInstance->__toString() . ':' .
-                               json_encode($this->getDatabaseInstance()->getConnectionData())
+                               json_encode(FrameworkBootstrap::getDatabaseInstance()->getConnectionData())
                        );
                } else {
                        // Without extra information
-                       $this->fixedSalt = sha1($serverIp . ':' . json_encode($this->getDatabaseInstance()->getConnectionData()));
+                       $this->fixedSalt = sha1($serverIp . ':' . json_encode(FrameworkBootstrap::getDatabaseInstance()->getConnectionData()));
                }
 
                // One-way data we need for "extra-salting" the random number