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=47951&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47951&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47951&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47951&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47951&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47951&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47951&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47951&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47951&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47951&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47951&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47951&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47951&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47951&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47951&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47951&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47951&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47951&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47951&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47951&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47951&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47951&r=mysqlcfg
