commit | b627430ae60d7c5f13ecc2f289bce8185c218be0 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Tue Sep 30 20:30:06 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Tue Sep 30 20:30:06 2014 +0300 |
tree | d2ba4c1244b0c08e0118b2cde4a1bea6d7b3a1fe | |
parent | 5bf4dcde18ae0d584c2dc701ccc8e43124549130 [diff] [blame] |
Make sure we don't waste entropy
diff --git a/system/core/Security.php b/system/core/Security.php index 4b204ad..b97df46 100755 --- a/system/core/Security.php +++ b/system/core/Security.php
@@ -573,6 +573,7 @@ if (is_readable('/dev/urandom') && ($fp = fopen('/dev/urandom', 'rb')) !== FALSE) { + stream_set_chunk_size($fp, $length); $output = fread($fp, $length); fclose($fp); if ($output !== FALSE)