Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83700 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60861 invoked from network); 24 Feb 2015 21:33:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 21:33:45 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:43581] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/96-24698-83EECE45 for ; Tue, 24 Feb 2015 16:33:45 -0500 Received: by lbiw7 with SMTP id w7so27891730lbi.10 for ; Tue, 24 Feb 2015 13:33:41 -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=flXL58J7QpnEokc2v0NEJeZGUwLW/gTfSWPrlyVzONA=; b=iVXflVlStKuJFtj8w6nLzvAr8cIv52iZM4QwMq3xwufeIeDXoKgLdDUju0T6QXw/xq n0Tiyrkv680yNQhh4uEaYDxo1WOwFuUqK6zshRQuDFOiNl1q74Z5TDMHL1LXIzRjhxP2 8RqK6uynqrDmP/cxtV/Va6xTKQ19rvaw/nGCT/twYuNccsoLWKHBnE9CgnA7RjrKZEBC sr+lHB7uzpbNvS6bsE8IcZmRk3VHE95ZeboeiTPXekp3g995sEYwh0gKp+S/q+b/TxBu hCS2nPz+YxQ/Wp+28d9oVAw7U0YGSPye/irathzuqrC5I9+ZS5W8A+hnJE4JuG1klXoR SNvg== MIME-Version: 1.0 X-Received: by 10.152.28.73 with SMTP id z9mr15029lag.28.1424813621671; Tue, 24 Feb 2015 13:33:41 -0800 (PST) Received: by 10.25.43.9 with HTTP; Tue, 24 Feb 2015 13:33:41 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Feb 2015 16:33:41 -0500 Message-ID: To: =?UTF-8?Q?P=C3=A1draic_Brady?= 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: ircmaxell@gmail.com (Anthony Ferrara) 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 wrote= : >> 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? I don't know... Anthony