Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55372 invoked from network); 24 Feb 2015 10:55:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 10:55:11 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.45 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:47911] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/E2-37184-E885CE45 for ; Tue, 24 Feb 2015 05:55:11 -0500 Received: by mail-qa0-f45.google.com with SMTP id j7so26414635qaq.4 for ; Tue, 24 Feb 2015 02:55:08 -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=XvN6pOaT4d7s9cA7J2LneHC6v0yG2/mrDQ4aNoS2Kdg=; b=SxMb1pOEFk9X8MoyCWfnBOyRCour9DR0QvrAfEPGr9gRTucG34rrqXajMdWYOOREu3 Hmx9PzsjpfTMC7U5h1Vyqj7Rud2QFrHDwWSFGAd21r2kUSXWfUhQoFN9VnMhLe1+9rfo VZoOfPUrGBpx+GdZjpT5M1TEbjm8bRgDyDA2+lKuiRb4/dSgy2udo7e9q6xB6O1qvMRF N0IN9myZolZnd8uUzP3am7q5YTQ4CT+jInVExkn8tiBWac6WNBMbX99yBdaUVcGQSwn9 RLT5pXdkx8CPCFb9mOgSu+N+I/3UQc90VuG9D2P1m312FnM3ROkheKcx11dey9CNsjfl 8sNw== MIME-Version: 1.0 X-Received: by 10.140.102.165 with SMTP id w34mr34642836qge.26.1424775308535; Tue, 24 Feb 2015 02:55:08 -0800 (PST) Received: by 10.96.39.195 with HTTP; Tue, 24 Feb 2015 02:55:07 -0800 (PST) Received: by 10.96.39.195 with HTTP; Tue, 24 Feb 2015 02:55:07 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Feb 2015 02:55:07 -0800 Message-ID: To: Sammy Kaye Powers Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c16890266d3f050fd35a37 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Reliable user-land CSPRNG From: pierre.php@gmail.com (Pierre Joye) --001a11c16890266d3f050fd35a37 Content-Type: text/plain; charset=UTF-8 It should use the session.entropy_file setting as it aims to be the exact same thing. It also allows custom entropy src (better ones for higher demands) as well. On Feb 23, 2015 10:36 PM, "Sammy Kaye Powers" wrote: > The RFC to add a user-land API for an easy-to-use and reliable CSPRNG in > PHP is up for discussion: https://wiki.php.net/rfc/easy_userland_csprng > > This proposes adding two methods: `random_bytes()` and `random_int()` that > return cryptographically secure pseudo-random data. > > This has been quite a team effort so far and would love to hear your > feedback! :) > > Thanks, > Sammy Kaye Powers > sammyk.me > > 230 S Clark St #194 > Chicago, IL 60604 > --001a11c16890266d3f050fd35a37--