Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60064 invoked from network); 8 Feb 2014 07:13:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2014 07:13:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.43 mail-qa0-f43.google.com Received: from [209.85.216.43] ([209.85.216.43:43453] helo=mail-qa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/10-58559-229D5F25 for ; Sat, 08 Feb 2014 02:13:38 -0500 Received: by mail-qa0-f43.google.com with SMTP id o15so6663637qap.2 for ; Fri, 07 Feb 2014 23:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rJCqw41BJa6WTu4iO2PicqbtXFCnc0muDlle9o9GnsE=; b=Z9ubNMiWek6UNId5F9SZKKPV3Msv5M1KCTslpZrm22BspjzTvB2Rz+yJNYYoBrcV7x UZZfFCXJ7HPp+M6T8fqDBzYdl0pqgRtqQUO039ngnBTt8O/F6rckwrVb1OYoH3atEKo1 JPvR0ULZ6uuWsPPaL05oe07qvzZruSZPWVr2/Ax3/+9qgqCC1q3WBOaBWL/MhfvVfMiC 7RsZCjO/F4yhSw3RWyqBF9trFj9ZBMcJ6gVFXR0SvWvKlBNtziP5Iwle9aI6EjjCvpDY tsBMLOrJyUX9gIbz960yTNlozQ8dn9rifnzsoTrVFuySosF1LM5LOQ+jwEtCoZdSg2tL 1FBg== MIME-Version: 1.0 X-Received: by 10.140.26.43 with SMTP id 40mr27403504qgu.86.1391843615626; Fri, 07 Feb 2014 23:13:35 -0800 (PST) Received: by 10.140.18.145 with HTTP; Fri, 7 Feb 2014 23:13:35 -0800 (PST) Received: by 10.140.18.145 with HTTP; Fri, 7 Feb 2014 23:13:35 -0800 (PST) In-Reply-To: References: Date: Sat, 8 Feb 2014 08:13:35 +0100 Message-ID: To: Yasuo Ohgaki Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c12bf04ad99e04f1dfd8d1 Subject: Re: [PHP-DEV] unify entropy source for all php related functions From: pierre.php@gmail.com (Pierre Joye) --001a11c12bf04ad99e04f1dfd8d1 Content-Type: text/plain; charset=UTF-8 On Feb 8, 2014 5:48 AM, "Yasuo Ohgaki" wrote: > > > +1 for unify. > BTW, it sound more natural if names are > random.entropy_crypto_source (/dev/(u|a)random etc.) > random.entropy_strong_source (/dev/random etc.) > > I feels like 'strong' > 'crypto' with this naming. I did not invent this naming, it is used in many papers and docs to refer to the quality of a PRNG. >> I am not willing to propose new RNG functions or extensions for 5.6 as >> we have way too little time to actually discuss its design and APIs. >> However having these settings unified and documented would be a good >> step forward already. > > > Although, I really would like to have one, it's not much issue for me, but > a issue for average users ;) > This is possible implementation. > > https://github.com/yohgaki/php-src/compare/PHP-5.6-rfc-random_bytes > > It's not perfect yet, though. There are many issues not being taken care here. Also a single function for many different behaviors may not be what we wish. I would suggest not to hurry up with it :) Cheers, Pierre --001a11c12bf04ad99e04f1dfd8d1--