Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91380 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2394 invoked from network); 24 Feb 2016 21:32:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2016 21:32:07 -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.161.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.161.181 mail-yw0-f181.google.com Received: from [209.85.161.181] ([209.85.161.181:34959] helo=mail-yw0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/B0-27730-6512EC65 for ; Wed, 24 Feb 2016 16:32:07 -0500 Received: by mail-yw0-f181.google.com with SMTP id g127so26930016ywf.2 for ; Wed, 24 Feb 2016 13:32:06 -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=fHeAFNBpwptROQfZOe5RzSusycXyWoD9jMJoKe+zfsw=; b=Izj+ExaZaGiDKrKj6xgmQp/w2m+kWbtqg3ufCffsBYhxHJ/MhiQVnnnGgIrBRKAAQM ej5kuS3zNwbjIEZwI2+QCRHvEb7abT0HLQf9W40DB0Y05g+sX/rCwPnnjZ1WwlLQHE+c CtcWRdNHkN4p4ZchnSessx/Qrou6SsREj7JTJ6Z97eSGTQqWwzeLqrFBQRBUbIUdRlZz Mx/qfUdWcjPUtpuOK+GhB4hMN5WoQqMHZ7+B7YEz6hfHn3c8qmlHtnn/A9JiauUt8T2T rNx8plaOor9sbS7YPQfkG9Gy9EHKWKGEa4Yiu+PleNMAzCNDEFMWiCkXowiidBk2vdOB hk9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=fHeAFNBpwptROQfZOe5RzSusycXyWoD9jMJoKe+zfsw=; b=E3Wz6rI5ZCjsOHpQ1/+5jRRMUsTwNv3xI1PyoNRPkXWQwlctG+mGiN42yHEcqjEWI1 IClxjNca91Prea6RhLb7ApsbK1OnFjTMOwMufH677wl+mNmf+qZ1NdknyBLW44Ae2g08 6lM9bRQZzn4LRFL6qitDt8r0V0GpjkjE5Agi26irvQKZOM1eTSotyq3MIgSczLtkKchR nW5740dfh4kQ0XEXX2yPrQi5Y3asipAylycF58dw+LJXFbkc6fZJLvvN/B7UO8LXZRH6 FfOGfTzLAaCjN8CQg+XkKRnURbsYDDu68K+dQjGQ9NLQnMaury5q+hjmOe79TJKLeTrL lCWw== X-Gm-Message-State: AG10YOQgRop+wAl4ZDcN/342wGj68siBSksH0waCmBddbikUMtefGdM+F1OjnM/g4jAgD0ZV6MTS7cPzuLO9lQ== X-Received: by 10.129.4.132 with SMTP id 126mr23316435ywe.184.1456349524091; Wed, 24 Feb 2016 13:32:04 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.109.22 with HTTP; Wed, 24 Feb 2016 13:31:24 -0800 (PST) In-Reply-To: References: Date: Thu, 25 Feb 2016 06:31:24 +0900 X-Google-Sender-Auth: IGsRTXgZ6P2HCEyurQA8QBwl-mY Message-ID: To: Nikita Popov Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: PRNG: Raise warning and/or provide better pseudo random generator? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Nikita, On Wed, Feb 24, 2016 at 9:00 PM, Nikita Popov wrote: > On Wed, Feb 24, 2016 at 1:27 AM, Yasuo Ohgaki wrote: >> >> Hi all, >> >> On Tue, Feb 23, 2016 at 7:41 PM, Yasuo Ohgaki wrote: >> > Any comments for adding out of range warnings to rand()/mt_rand()? If >> > nobody has comment on this, I'll write RFC for additional warnings. >> > Anyone prefer to extend rand()/mt_rand() for 64bit OSes? >> >> I'll write RFC to raise errors for invalid range, hopefully this weekend. >> >> Thank you for feedback! > > > I think it would be preferable to wait a bit -- there's clearly interest in > replacing rand/mt_rand etc with a higher quality PRNG, so maybe lets give > people time to create a proposal for that before we start throwing warnings. Reasonable suggestion! Adding warnings is trivial. It could done before RC. I'll wait until then. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net