Continued:
[core.git] / contrib / chash / lib / functions.php
index b6bbc079d40e9b8f363ddd60a5855beb504515c0..8401a1084772b08252b2376aa54e03cbf44bf66d 100644 (file)
@@ -137,7 +137,7 @@ function addFoundHash ($hash) {
  * @return     void
  */
 function initNonce () {
  * @return     void
  */
 function initNonce () {
-       $GLOBALS['nonce'] = 1 / (mt_rand() ^ pi());
+       $GLOBALS['nonce'] = 1 / (mt_rand() ^ (1 / pi()));
        print (__FUNCTION__ . ': nonce=' . $GLOBALS['nonce'] . PHP_EOL);
 }
 
        print (__FUNCTION__ . ': nonce=' . $GLOBALS['nonce'] . PHP_EOL);
 }