Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Division by 0 in JCrypt #1557

Merged
merged 1 commit into from
Oct 2, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/joomla/crypt/crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down