]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/rng/class_RandomNumberGenerator.php
User login (non-guest) basicly finished, news stubs added, registration and final...
[shipsimu.git] / inc / classes / main / rng / class_RandomNumberGenerator.php
index b50af11d865a3f3b051be397b5ff13b96d441ecd..a72e13a9e03fa74f023750b3c1be27fd15b9a57f 100644 (file)
@@ -3,10 +3,10 @@
  * A standard random number generator
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.3.0
+ * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.mxchange.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -97,6 +97,7 @@ class RandomNumberGenerator extends BaseFrameworkSystem {
 
                // Set the server IP to cluster
                $serverIp = "cluster";
+
                // Do we have a single server?
                if ($this->getConfigInstance()->readConfig('is_single_server') == "Y") {
                        // Then use that IP for extra security
@@ -104,7 +105,7 @@ class RandomNumberGenerator extends BaseFrameworkSystem {
                }
 
                // One-way data we need for "extra-salting" the random number
-               // @TODO Add site for stronger salt!
+               // @TODO Add site key for stronger salt!
                $this->extraSalt = sha1($serverIp . ":" . getenv('SERVER_SOFTWARE') . ":" . $this->getConfigInstance()->readConfig('date_key') . ":" . serialize($this->getDatabaseInstance()->getConnectionData()));
 
                // Get config entry for max salt length