Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93967 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30026 invoked from network); 14 Jun 2016 18:44:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jun 2016 18:44:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.215.47 mail-lf0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:35564] helo=mail-lf0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/50-27860-99050675 for ; Tue, 14 Jun 2016 14:44:42 -0400 Received: by mail-lf0-f47.google.com with SMTP id u74so110247160lff.2 for ; Tue, 14 Jun 2016 11:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=EbAYedXTEnwq7pB2ppnX211P1LVbjl+xk/00aFEw7cQ=; b=wDld1Xd/mmn8sDylZ5KjqP7Xr9sAHaOGujZlhGAbx05K+/NdgDiHuTfr3MO6FdfbTX 7v+jQb1jQDswXZimFAJB7MdUEgWBPjTdihpBcNsBGi422Y9SuEE8BjiZwKf7XpW2lvb+ /LXVPWAAgdM9r7Ws6q2/qKqFInK+mtrjkhFEvznovyhJUXMwKSFAJWs6VGr5ucHw5L8j FZtN0PoEVWUgOzp+8CoWplcZ/3VQ2aggMYuJzM2SDJodhvCSQ7qeVyO/HnSj+tmRupCy zCojPY0lz4o/5XTTfttXh8Yj1q4AT/qLJUpwvt8EzdWxbqx7P2PUWF04kTz+6IFDjE9N ZHew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=EbAYedXTEnwq7pB2ppnX211P1LVbjl+xk/00aFEw7cQ=; b=EjYIVW6gJD4yIlg52VTLpk6fEmc87SLxpm9LaSBdUvuAmRHs8ChVWCyvAu7VdyShN5 2aZbB7gp2+ZKwfw5YgD9ysiFepV3bcpGrmdBEC/AIoJgkJks703Xuq4n1qbUBdqxsWxL kchMeCLaGE+sbRbW4ECn+U77wOkAzS01d7+iFdUKbCbxB+VdukTmkx7CRQg0XtM8unyL Lm2EQz3+ICCTWquTGJLb6qADTwTQ5nBIP9cLEUMuUxUd0Q/NohQpEkyVlMg2Yizx3mO7 zXOwV+pFcxuq3CLLpXySkjlKuh6Rx72anqTOHGKNUXegkp6HUwHRfQfgGOI/GYt0AXi7 xpYQ== X-Gm-Message-State: ALyK8tLxjQ+mmA+GfLzEhK8dGaTHKEuNVlozLh2Sp2kwMWPNeM4Kq2a0uewLwvzA0xcyV9bYuq2ajP2No2UUqg== X-Received: by 10.25.37.207 with SMTP id l198mr1927721lfl.190.1465929878443; Tue, 14 Jun 2016 11:44:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 Jun 2016 18:44:28 +0000 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a114110b2ab9c90053541651f Subject: Re: [PHP-DEV] [RFC] RNG fixes From: leight@gmail.com (Leigh) --001a114110b2ab9c90053541651f Content-Type: text/plain; charset=UTF-8 On Tue, 14 Jun 2016 at 18:45 Fleshgrinder wrote: > Why do we need so many functions to get a random int anyways if we now > have random_int()? I would like to see all of them deprecated and > removed in PHP 8.0. Lets see if others support this option. (I'm not even sure I do right now) > I do not see a problem to change array_rand(), array_shuffle(), nor > str_shuffle() since their output should be random anyways. > Right now a call to srand() with a given seed will make these functions return the same sequence of outputs for a particular set of inputs. This behaviour is fine and sometimes even desirable. The changes in this RFC will change those outputs, they will still be controllable with srand() though --001a114110b2ab9c90053541651f--