@@ -379,10 +379,10 @@ discard block |
||
379 | 379 | $bytes = ($total > $hash_len) ? $hash_len : $total; |
380 | 380 | $total -= $bytes; |
381 | 381 | //collect any entropy available from the PHP system and filesystem |
382 | - $entropy = rand() . uniqid(mt_rand(), true) . $SSLstr; |
|
382 | + $entropy = rand().uniqid(mt_rand(), true).$SSLstr; |
|
383 | 383 | $entropy .= implode('', @fstat(@fopen(__FILE__, 'r'))); |
384 | - $entropy .= memory_get_usage() . getmypid(); |
|
385 | - $entropy .= serialize($_ENV) . serialize($_SERVER); |
|
384 | + $entropy .= memory_get_usage().getmypid(); |
|
385 | + $entropy .= serialize($_ENV).serialize($_SERVER); |
|
386 | 386 | if (function_exists('posix_times')) { |
387 | 387 | $entropy .= serialize(posix_times()); |
388 | 388 | } |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | $var = sha1($var); |
401 | 401 | } |
402 | 402 | $c2 = microtime(true); |
403 | - $entropy .= $c1 . $c2; |
|
403 | + $entropy .= $c1.$c2; |
|
404 | 404 | } |
405 | 405 | // Based on the above measurement determine the total rounds |
406 | 406 | // in order to bound the total running time. |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $var = sha1($var); |
416 | 416 | } |
417 | 417 | $c2 = microtime(); |
418 | - $entropy .= $c1 . $c2; |
|
418 | + $entropy .= $c1.$c2; |
|
419 | 419 | } |
420 | 420 | } |
421 | 421 | // We assume sha1 is a deterministic extractor for the $entropy variable. |