Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83702 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64148 invoked from network); 24 Feb 2015 21:45:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 21:45:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=padraic.brady@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=padraic.brady@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: padraic.brady@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:38317] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/47-24698-4E0FCE45 for ; Tue, 24 Feb 2015 16:45:09 -0500 Received: by lbiz11 with SMTP id z11so28051258lbi.5 for ; Tue, 24 Feb 2015 13:45:05 -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:content-transfer-encoding; bh=JslNezv3JMUlxZhFQvBH9K1mXFdRToOyFaEC42mbT/E=; b=TP+Hf/3VqzP5CBTEyPbRK8TUXSjGZA3bybBFe8mTO3vHo1r8UVNo8TH6lS4gYUHj3e kxY+At8ptOxfh4qpFVC6YMNvfavqE9my/JwVHwNAxHMpU1g5Xlfn2lgPzkMLHIO31QC8 gnH6iZFhLB6siyW8DMsThC4IvWYeEvlqrMLGm2P/c3Pg2+MBkNbThBuYr84ZmOGFYBeb X+na/2qga1YyJz499EgXgw5e1YMnI7QEmHyNe24mjMGtKdkh4Oj3ngW9nRcA+gMXqZB7 28bj42YrzUo7uDhc0egqPMyrY3CgCJekXiphyb+x/AS8n4E8SeSBzbhIUiNBQ/ttTgaw PjIQ== MIME-Version: 1.0 X-Received: by 10.112.162.42 with SMTP id xx10mr70786lbb.6.1424814305225; Tue, 24 Feb 2015 13:45:05 -0800 (PST) Received: by 10.112.154.229 with HTTP; Tue, 24 Feb 2015 13:45:05 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Feb 2015 21:45:05 +0000 Message-ID: To: Anthony Ferrara Cc: Pierre Joye , Leigh , Sammy Kaye Powers , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Reliable user-land CSPRNG From: padraic.brady@gmail.com (=?UTF-8?Q?P=C3=A1draic_Brady?=) Hi On 24 February 2015 at 21:33, Anthony Ferrara wrote: > Padraic, > > On Tue, Feb 24, 2015 at 4:17 PM, P=C3=A1draic Brady wrote: >> Hi >> >> On 24 February 2015 at 20:04, Anthony Ferrara wrot= e: >>> If random_bytes() is harder than uniqid(), it's a non-starter. >> >> Technically, it will be harder than uniqid() if producing strictly >> random bytes (if output needs to be printable/readable). >> That's not a "bad" thing obviously! > > Sure. But does that indicate the need for a "random_string()" function? It would be more random than a stream of 0-9 integer characters, and probably useful compared to base64'ing a byte stream. I'm afraid to go survey how its done in the wild right now. Possibly? Paddy -- P=C3=A1draic Brady http://blog.astrumfutura.com http://www.survivethedeepend.com