Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57387 invoked from network); 5 Jun 2016 07:46:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2016 07:46:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.89 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.89 mx108.easyname.com Received: from [77.244.243.89] ([77.244.243.89:42535] helo=mx204.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/40-55579-FE8D3575 for ; Sun, 05 Jun 2016 03:46:56 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1b9SUQ-000489-3E; Sun, 05 Jun 2016 07:28:54 +0000 Reply-To: internals@lists.php.net References: <295c09d5-01af-1528-8e61-00dc6ee6c69e@fleshgrinder.com> <52b8417d-4d23-338c-0737-562ddc7476b5@fleshgrinder.com> <0b86d8dd-1049-938f-586a-da0c2449c3df@gmail.com> To: Stanislav Malyshev , internals@lists.php.net, Niklas Keller , Scott Arciszewski Message-ID: <30543b1a-2ed9-1565-af34-993052d99bc5@fleshgrinder.com> Date: Sun, 5 Jun 2016 09:28:51 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <0b86d8dd-1049-938f-586a-da0c2449c3df@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2fuXp7I2urVmf8qHBm0tTl1LQL6A9qjCf" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] Libsodium - Discussion From: php@fleshgrinder.com (Fleshgrinder) --2fuXp7I2urVmf8qHBm0tTl1LQL6A9qjCf Content-Type: multipart/mixed; boundary="tdP9loWTvflEEamBQ0NLFDp1v2AxbAEBl" From: Fleshgrinder Reply-To: internals@lists.php.net To: Stanislav Malyshev , internals@lists.php.net, Niklas Keller , Scott Arciszewski Message-ID: <30543b1a-2ed9-1565-af34-993052d99bc5@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] Libsodium - Discussion References: <295c09d5-01af-1528-8e61-00dc6ee6c69e@fleshgrinder.com> <52b8417d-4d23-338c-0737-562ddc7476b5@fleshgrinder.com> <0b86d8dd-1049-938f-586a-da0c2449c3df@gmail.com> In-Reply-To: <0b86d8dd-1049-938f-586a-da0c2449c3df@gmail.com> --tdP9loWTvflEEamBQ0NLFDp1v2AxbAEBl Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 6/5/2016 12:25 AM, Stanislav Malyshev wrote: > We don't really need the uniform part if we don't have the non-uniform > one. If the only one we get is uniform, and it's the one we actually > want, we should not spell it out in the name - we should name it > something like random_int or random_range or random_between and explain= > in the docs that yes, it's the uniform one and it's the only you get > because uniform is awesome. >=20 https://secure.php.net/function.random-int Is it uniform? That shouldn't be too hard to find out and the result might be again that we actually don't need this new function at all. --=20 Richard "Fleshgrinder" Fussenegger --tdP9loWTvflEEamBQ0NLFDp1v2AxbAEBl-- --2fuXp7I2urVmf8qHBm0tTl1LQL6A9qjCf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXU9SzAAoJEOKkKcqFPVVrU2IQAL5RqEktlwxoZDaCLlJ285dG E/uaP3XUBp2o8F1wjQYVVaS+HZKz6qOPR+Z6l22Q/s0STeLGIxkeh7Z8GB0G/4Bt g6ZwGbmqPp6y6oQuW8i2v45fvCW5nVkZyERPWHqh8dRN/auGvIAfiOFaz2xHVyHZ Jkgx/B8VDIH4hPBV788R/DPA7B4NJOw1dD9AExbvb1j7GjpoH1Gp5+d9fODw6+Zf /NtxG7K6JIOI2N5YlL4V9D5N35ctQLC/XOsdFuJhFKDuwhd5KKBjE68wvk3v5Nod aYnS3it/Tl1roIRdsMM2HGlQ2eWhK+t+99AKYcdEWjvLao5VmqehhR8GpbUc81G5 7hWFT4zYHDemCmNbNOTOLfwLQ7on3EBrcl8KHkjlwhoq7/f4UAt27EfKQMIIrTHm SgRMdTgsQ7ofp1mEw0nUEjfAOBq1WlivKPUsHJ2FhDrNoFH0+pQOWx6w0UwqKlPo hd1ivQ+i9TvszSQhEwv1EQf9xN1AoXJ+dmRuIbTWaxtSxPeEhE6ys4KH6DARFv5q FA8fW88U1yD2rFU5eAMvLe+74nzazVHaRvoJnM1vbQhf2ZanHVXG7ZSJhh+AwuVZ eOao6Z0KLMVFfe2KXRFMgZRLXPrUBk50oHuQer/Oa4BXTqKf7+yHBCwbfXsESA8Y Rxc3ilcMISIJtDGPGlrx =PMiL -----END PGP SIGNATURE----- --2fuXp7I2urVmf8qHBm0tTl1LQL6A9qjCf--