|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-11 19:12 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 15:00:01 2025 UTC |
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 ---