rfc:easy_userland_csprng

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:easy_userland_csprng [2015/03/14 00:38] leighrfc:easy_userland_csprng [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== PHP RFC: Easy User-land CSPRNG ====== ====== PHP RFC: Easy User-land CSPRNG ======
-  * Version: 0.4+  * Version: 0.5
   * Date: 2015-02-20   * Date: 2015-02-20
   * Author: Sammy Kaye Powers <me@sammyk.me> & Leigh <leigh@php.net>   * Author: Sammy Kaye Powers <me@sammyk.me> & Leigh <leigh@php.net>
-  * Status: Under Discussion+  * Status: Implemented (in PHP 7.0)
   * First Published at: http://wiki.php.net/rfc/easy_userland_csprng   * First Published at: http://wiki.php.net/rfc/easy_userland_csprng
  
Line 27: Line 27:
 <code> <code>
 random_bytes(int length); random_bytes(int length);
-random_int([int min = ~PHP_INT_MAX [, int max = PHP_INT_MAX]]);+random_int(int min, int max);
 </code> </code>
  
Line 80: Line 80:
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-The current WIP patch can be found here: https://github.com/php/php-src/pull/1119+The current patch can be found here: https://github.com/php/php-src/pull/1119
  
-===== References ===== +===== Proposed Voting Choices ===== 
-None so far.+ 
 +The voting choices are yes (in favor for accepting this RFC for PHP 7) or no (against it). 
 + 
 +===== Vote ===== 
 + 
 +Vote starts on March 14th, and will end two weeks later, on March 28th. 
 + 
 +This RFC requires a 2/3 majority. 
 + 
 +<doodle title="Reliable user-land CSPRNG" auth="SammyK" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
-===== Rejected Features ===== 
-None so far. 
  
 ===== Changelog ===== ===== Changelog =====
 +   * 0.5: Updated the function header for random_int() to reflect all args as required. - SammyK 
    * 0.4: Added BC info. Updated patch link to point to PR. - SammyK    * 0.4: Added BC info. Updated patch link to point to PR. - SammyK
    * 0.3: Changed ''-PHP_INT_MAX'' to ''~PHP_INT_MAX'' (thanks [[https://twitter.com/trevorsuarez/status/570308776185733122|@trevorsuarez]]) - SammyK    * 0.3: Changed ''-PHP_INT_MAX'' to ''~PHP_INT_MAX'' (thanks [[https://twitter.com/trevorsuarez/status/570308776185733122|@trevorsuarez]]) - SammyK
rfc/easy_userland_csprng.1426293514.txt.gz · Last modified: 2017/09/22 13:28 (external edit)