[PR][php-src][#1086][PHP-5.5] - Use /dev/arandom for session entropy if it exists.
| From: | noreply@php.net | Date: | Thu, 19 Feb 2015 17:27:34 +0000 |
| Subject: | [PR][php-src][#1086][PHP-5.5] - Use /dev/arandom for session entropy if it exists. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2370@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1086
Pull Request Description:
Rasmus added a check for
/dev/arandom in PHP 5.4, however it only gets used if
/dev/urandom does not exist. This behaviour should be changed to prefer
/dev/arandom even if /dev/urandom exists.
```
$ TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php run-tests.php ext/session
...
=====================================================================
Number of tests : 205 201
Tests skipped : 4 ( 2.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 201 ( 98.0%) (100.0%)
---------------------------------------------------------------------
Time taken : 14 seconds
=====================================================================
$ uname -a
OpenBSD obsd.home 5.6 GENERIC.MP#333 amd64
$ sapi/cli/php -r 'var_dump(ini_get("session.entropy_file"));'
string(12) "/dev/arandom"
```