Continued:
[core.git] / inc / classes / main / rng / class_RandomNumberGenerator.php
index fb74071e3931f5cb57ec2ff386960ad4fe8dd658..a30fb0ddd4750cf6e89d8a008fa92db30b1573fb 100644 (file)
@@ -122,11 +122,11 @@ class RandomNumberGenerator extends BaseFrameworkSystem {
                        $this->fixedSalt = sha1(
                                $serverIp . ':' .
                                $extraInstance->__toString() . ':' .
-                               serialize($this->getDatabaseInstance()->getConnectionData())
+                               json_encode($this->getDatabaseInstance()->getConnectionData())
                        );
                } else {
                        // Without extra information
-                       $this->fixedSalt = sha1($serverIp . ':' . serialize($this->getDatabaseInstance()->getConnectionData()));
+                       $this->fixedSalt = sha1($serverIp . ':' . json_encode($this->getDatabaseInstance()->getConnectionData()));
                }
 
                // One-way data we need for "extra-salting" the random number