Skip to content
This repository
Browse code

Merge pull request #1557 from elinw/patch-2

Division by 0 in JCrypt
  • Loading branch information...
commit b22fdf8620e6b04cecae6d455416d162956e4155 2 parents 1d03caa + 6c96484
Louis Landry LouisLandry authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  libraries/joomla/crypt/crypt.php
2  libraries/joomla/crypt/crypt.php
@@ -194,7 +194,7 @@ public static function genRandomBytes($length = 16)
194 194 }
195 195 $microEnd = microtime(true) * 1000000;
196 196 $entropy .= $microStart . $microEnd;
197   - if ($microStart > $microEnd)
  197 + if ($microStart >= $microEnd)
198 198 {
199 199 $microEnd += 1000000;
200 200 }

0 comments on commit b22fdf8

Please sign in to comment.
Something went wrong with that request. Please try again.