projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Continued:
[core.git]
/
contrib
/
chash
/
lib
/
functions.php
diff --git
a/contrib/chash/lib/functions.php
b/contrib/chash/lib/functions.php
index b6bbc079d40e9b8f363ddd60a5855beb504515c0..8401a1084772b08252b2376aa54e03cbf44bf66d 100644
(file)
--- a/
contrib/chash/lib/functions.php
+++ b/
contrib/chash/lib/functions.php
@@
-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);
}