#47952 [NEW]: Access to OS randomness would be nice
| From: | jking at jkingweb dot ca | Date: | Sat, 11 Apr 2009 18:52:45 +0000 |
| Subject: | #47952 [NEW]: Access to OS randomness would be nice | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-135744@lists.php.net to get a copy of this message | ||
From: jking at jkingweb dot ca
Operating system:
PHP version: 5.2.9
PHP Bug Type: Feature/Change Request
Bug description: Access to OS randomness would be nice
Description:
------------
The other day I wrote a PHP implementation of a spec which mandates using
a cryptographically-secure random number generator. For most Unix systems
this is easy (/dev/urandom or /dev/random), but getting access to such a
source in PHP for Windows seems impossible.
I thought it might be beneficial for PHP to expose the best source of
randomness availble via fopen("php://random") or some such. I confess I
don't know how difficult this would be to do, but it would certainly be
more feasible for PHP itself to pull this off in a cross-platform fashion
than for little old me writing software from within PHP.
Reproduce code:
---------------
---
From manual page: wrappers.php
---
--
Edit bug report at http://bugs.php.net/?id=47952&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47952&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47952&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47952&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47952&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47952&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47952&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47952&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47952&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47952&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47952&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47952&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47952&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47952&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47952&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47952&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47952&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47952&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47952&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47952&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47952&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47952&r=mysqlcfg