This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #1557 from elinw/patch-2

Division by 0 in JCrypt
  • Loading branch information...
2 parents 1d03caa + 6c96484 commit b22fdf8620e6b04cecae6d455416d162956e4155 @LouisLandry LouisLandry committed Oct 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/crypt/crypt.php
@@ -194,7 +194,7 @@ public static function genRandomBytes($length = 16)
}
$microEnd = microtime(true) * 1000000;
$entropy .= $microStart . $microEnd;
- if ($microStart > $microEnd)
+ if ($microStart >= $microEnd)
{
$microEnd += 1000000;
}

0 comments on commit b22fdf8

Please sign in to comment.