Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72383 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84839 invoked from network); 7 Feb 2014 12:29:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2014 12:29:57 -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:59664] helo=mail-qa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/98-34013-4C1D4F25 for ; Fri, 07 Feb 2014 07:29:57 -0500 Received: by mail-qa0-f43.google.com with SMTP id o15so5107508qap.30 for ; Fri, 07 Feb 2014 04:29:53 -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=D8QALFWYln3jA+/8jxv9HlCBylPrGSOB8AT8D7yj3b4=; b=kyBvO9sYYiekVNAgkSLa0jX9a66u5DUowiRsR1l5uYCWWUCb0MdjZzj1WOAHFQ7YTB 2k9v/CbHqv6Zr+q2Fs3dJ5OmFX9XZ9ug9bm4YtwhnzG864m8Wl+E0l7hpbE6vvs4nNF1 hb4jcoPsg0xWIXUBIm3RM78w/2sC8c5gRsOaRCilm9dTNmV87j3nyfx1SK2hGOGAXw+T 5zC9YLG83UM3rfdgXcpq2cPmNcM+BNleQlsoQCIhQ9BR9gcwgXyArN+jZAv+qkQ6vfEC AsOl7dfAwe78ntS5KcRlGyupSvelkENudTrl6P70Wdv40rSgqbZcD0ZrGxGkjWcQiSVL ZvEw== MIME-Version: 1.0 X-Received: by 10.140.48.172 with SMTP id o41mr20185060qga.16.1391776193559; Fri, 07 Feb 2014 04:29:53 -0800 (PST) Received: by 10.140.18.145 with HTTP; Fri, 7 Feb 2014 04:29:53 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Feb 2014 13:29:53 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] unify entropy source for all php related functions From: pierre.php@gmail.com (Pierre Joye) On Fri, Feb 7, 2014 at 1:23 PM, Pierre Joye wrote: > On Fri, Feb 7, 2014 at 1:13 PM, Nikita Popov wrote: > >> I'm not sure I understand this proposal and/or its purpose. Different >> applications have different requirements on the strength of the random >> number generator. As such this is something that needs to be specified on >> every use, rather than a (global) ini setting. > > Not for this exact feature. To clarify my point, I forgot to mention something. This setting is not about changing any existing function behavior or how a given argument (using one of the dozen constants) behave, nor what a given argument will use as source. Each argument defines an entropy source which fits in one of the two propose settings. That's why these settings only allow one to define what will be used instead of hardcode /dev/random, /dev/urandom or /dev/arandom. Especially for the implementations where only one is used without any chance to work around it (besides ugly symlink and the likes).