Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21796 invoked from network); 14 Feb 2014 13:53:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2014 13:53:03 -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.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-qa0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:42526] helo=mail-qa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/42-09381-EBF1EF25 for ; Fri, 14 Feb 2014 08:53:03 -0500 Received: by mail-qa0-f53.google.com with SMTP id cm18so18321178qab.12 for ; Fri, 14 Feb 2014 05:53:00 -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=5JDlcTtvcZLefT7Bj98nAz6WfA3LX2LqjhJDS7i+Ues=; b=0LIVFlBzxv4OrNNHG+72admapJO8BqwBUEFWh6xg1r1zFnFBecC+kdcQWBm4TGnRxi Q+j+bq1Rtv2OxykgOVw2LYdn8YerkCns6bYMBrJov9QTVnhqzQgEyLI/pYbAZtk/cAA5 jbVWxlDWxxnxp80FytEh8GMnb9sK5LVccjEZvSFgoYt/INU5YLMbKbhHHWo68HqTHoLD UgWByY44jrgiFuNcwW7ARe1TO04Bl2CVioPxVA4kiIRYNvvRQCT3a9Kzya+mz64yZMIL C6lkEHG0ZUgd9MCTEZkq/9QWwQMwJbUtWhvyKmb8nrKxsfRjDwrNceGsweTAwiRDNMaF VPvQ== MIME-Version: 1.0 X-Received: by 10.229.179.69 with SMTP id bp5mr13087586qcb.17.1392385980395; Fri, 14 Feb 2014 05:53:00 -0800 (PST) Received: by 10.140.18.145 with HTTP; Fri, 14 Feb 2014 05:53:00 -0800 (PST) Received: by 10.140.18.145 with HTTP; Fri, 14 Feb 2014 05:53:00 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Feb 2014 14:53:00 +0100 Message-ID: To: Andrey Andreev Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2bf4ec0944404f25e1fa6 Subject: Re: [PHP-DEV] unify entropy source for all php related functions From: pierre.php@gmail.com (Pierre Joye) --001a11c2bf4ec0944404f25e1fa6 Content-Type: text/plain; charset=UTF-8 On Feb 14, 2014 8:02 PM, "Andrey Andreev" wrote: > So how does openssl_random_pseudo_bytes() work without blocking then? Because it tells you if the result is crypto safe or not: string *openssl_random_pseudo_bytes* (int $length [, bool &$crypto_strong] ) If you want only crypto safe result another function has to be used (on opennssl). --001a11c2bf4ec0944404f25e1fa6--