Req #63146 [Opn]: Use /dev/urandom as default random pool dev
| From: | aharvey@php.net | Date: | Mon, 24 Sep 2012 04:45:44 +0000 |
| Subject: | Req #63146 [Opn]: Use /dev/urandom as default random pool dev | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173671@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63146&edit=1
ID: 63146
Updated by: aharvey@php.net
Reported by: laruence@php.net
Summary: Use /dev/urandom as default random pool dev
Status: Open
Type: Feature/Change Request
Package: mcrypt related
Operating System: Linux
PHP Version: 5.4.7
Block user comment: N
Private report: N
New Comment:
Given it's a cryptographic function, I think we should continue to use /dev/random, but we
could document more clearly that the default behaviour may block until more entropy is available.
Previous Comments:
------------------------------------------------------------------------
[2012-09-24 04:27:26] laruence@php.net
Description:
------------
Hey, mcrypt_create_iv use /dev/random as the default random dev, this will cause
some unexpected issues for new users.
see:
"
nils at nm dot cx 19-Jun-2012 12:26
If you use /dev/random you need a well filled entropy pool or the application will
block until enough good entropy comes available
"
http://us.php.net/manual/en/function.mcrypt-create-iv.php
Test script:
---------------
none
Expected result:
----------------
none
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63146&edit=1