* Typo: missing $
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 May 2005 17:09:36 +0000 (17:09 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 8 May 2005 17:09:36 +0000 (17:09 +0000)
includes/GlobalFunctions.php

index 5615190..e1e9c2a 100644 (file)
@@ -162,7 +162,7 @@ function wfRandom() {
        # The maximum random value is "only" 2^31-1, so get two random
        # values to reduce the chance of dupes
        $max = mt_getrandmax();
-       $rand = number_format( (mt_rand() * max + mt_rand())
+       $rand = number_format( (mt_rand() * $max + mt_rand())
                / $max / $max, 12, '.', '' );
        return $rand;
 }