Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19901 invoked from network); 25 Feb 2015 01:41:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2015 01:41:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.52 mail-qa0-f52.google.com Received: from [209.85.216.52] ([209.85.216.52:42705] helo=mail-qa0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/42-24698-C582DE45 for ; Tue, 24 Feb 2015 20:41:49 -0500 Received: by mail-qa0-f52.google.com with SMTP id v10so606757qac.11 for ; Tue, 24 Feb 2015 17:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=5e7QNUdkm5mI77VyHFGX9Z1tC9ze4MvWeuJoaByy/3U=; b=KrDWIKUBRhZ/neJL9aa5YoZpJjO55seF8kAt38QN8RfMfMwuxz9s7mn//iKXdcec89 Zs5jlU2KA1ROwapVo91P0+YG3IVBzTAfQtXEF6tdLAzS6uxHd8qF4hvXsL+4hE2+sMqE OoF29nKkVAqu1pzYpAuoR1/hKSJyHSuElfBECe5ag7h5gBLtOHooycvw048F6jeIkSOM Kb2vJPsfLiaHsfhpvjPXEw1xyaHUje0QFAyKep17uVkWFjWN/wEIRAa4AxBej0T16TVT BJinnhQMXuISfKi0KNycW6L9Ejg+31wCxWPmGkylzmJzY81W4RBiy1x+zxRnNRLz6RDc VbmQ== X-Received: by 10.140.195.195 with SMTP id q186mr1599184qha.81.1424828506703; Tue, 24 Feb 2015 17:41:46 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Tue, 24 Feb 2015 17:41:06 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Feb 2015 10:41:06 +0900 X-Google-Sender-Auth: s0qjRmrlNe0O0IsRWzFxaboIaeU Message-ID: To: =?UTF-8?Q?P=C3=A1draic_Brady?= Cc: Anthony Ferrara , Pierre Joye , Leigh , Sammy Kaye Powers , PHP internals Content-Type: multipart/alternative; boundary=001a1143254e020ee7050fdfbd25 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Reliable user-land CSPRNG From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1143254e020ee7050fdfbd25 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Padraic, On Wed, Feb 25, 2015 at 7:54 AM, P=C3=A1draic Brady wrote: > On 24 February 2015 at 22:08, Yasuo Ohgaki wrote: > > Random bytes is better. People would use it for IV or like with the > > size of IV. If we use string, users loose effective bits. > > Suggestion was for an additional function, so random_bytes() would > still be there ;). random_string() sounds good to me, too! It can be used system generated passwords, etc. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1143254e020ee7050fdfbd25--