X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=contrib%2Fchash%2Flib%2Ffunctions.php;h=8401a1084772b08252b2376aa54e03cbf44bf66d;hp=b6bbc079d40e9b8f363ddd60a5855beb504515c0;hb=f422768118036ba1254ebb8139fefdea8584cec5;hpb=ab3ee7b8c52993cf0c8390ac5d78e2980427e3fc diff --git a/contrib/chash/lib/functions.php b/contrib/chash/lib/functions.php index b6bbc079..8401a108 100644 --- a/contrib/chash/lib/functions.php +++ b/contrib/chash/lib/functions.php @@ -137,7 +137,7 @@ function addFoundHash ($hash) { * @return void */ function initNonce () { - $GLOBALS['nonce'] = 1 / (mt_rand() ^ pi()); + $GLOBALS['nonce'] = 1 / (mt_rand() ^ (1 / pi())); print (__FUNCTION__ . ': nonce=' . $GLOBALS['nonce'] . PHP_EOL); }