Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114795 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38151 invoked from network); 9 Jun 2021 10:00:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jun 2021 10:00:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7489118053A for ; Wed, 9 Jun 2021 03:15:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 9 Jun 2021 03:15:35 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id f30so37202605lfj.1 for ; Wed, 09 Jun 2021 03:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PJYvKUFiXqOMh+b4MwV3T41n/38Vx6XZEWGn54zKDiE=; b=HSuBMC0XqDwOcy13GhQwcN1jPX4U5RnqOpSEkCbHk2swhloH8iNjuFTCcaiSCqvvbV U0nBJ3c8rgzD85+aabFDEYLOiAm7Q91/dbZFtU8MOjscUmegDP9WzeYAH4FL+L3r4x7T Go4JAmN7M50RMimpaOxJLyIVKi72oaQ0VbJcewXqxJPimkNzMwgMmUKVOTQ9Q0BXIws5 ywTg99S9YP50PYHz+Na3q3GzBx5OaNCuiJYkT2HPiu0QSeW+mMdwfwzdNPTQ9+3mk6ah lWhX5zvGfCaib1QBJeUrQDtWUBNWWqsV9/I2d662DqBwWUE/XkHRJl7ltUOB7j8sy6XM SHOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PJYvKUFiXqOMh+b4MwV3T41n/38Vx6XZEWGn54zKDiE=; b=Qu10jz2y5dgghYJbmMdzoz40eJbiqtVL6Jl7fpkljnYjrRbGVeV67c6Z0v4bjAsbZ8 wW90qfe9G5+tmSxuZ8R+Wo9s/YPSMLB+ZVNnoeI4YQ4O6bUCmg9J5Ln7/cCGP9I2ABtv dhVmYEQdkTQkfTASa31iyzpjE5vae7WfocL1Iz5RPEJN74YaQdkIwV0BkHf7pnh0mlaq 49/ZTWt87Yjlbwu5xGK0qPhBwgqkl+Fni13wLJOErDit56WCLROW6pspClZLWm4EuOD2 P+w97cn5oU8VjXCC6+6IGdBXx9vlDCGF3bFWykx39mdUIsUtOTcwgn2mbnW6nZkhPq99 yw+Q== X-Gm-Message-State: AOAM531N3ngODEwv8ZFEC945kX3YWgoIXCkM5X0t+n8fkT+bcIVxCHo1 9HCXor0KU+owpo/vxNmdnPmxH+j2sFUTTCuVcQ== X-Google-Smtp-Source: ABdhPJwRvvW8TfDLjVA954KCjnbG7pbwyEqn+N99GF7lSG0G+VaAPNlUxjl6Kb73iQY4jNSVEIfBpl8HMDm/ubHK3ak= X-Received: by 2002:ac2:5324:: with SMTP id f4mr18094687lfh.124.1623233733175; Wed, 09 Jun 2021 03:15:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 9 Jun 2021 12:15:22 +0200 Message-ID: To: Go Kudo Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000000dad6e05c4528ed3" Subject: Re: [PHP-DEV] Re: [RFC] Under Discussion: Add Random class and RandomNumberGenerator interface From: guilliam.xavier@gmail.com (Guilliam Xavier) --0000000000000dad6e05c4528ed3 Content-Type: text/plain; charset="UTF-8" > > Couldn't the Random class simply implement `public function __clone(): > void` (that would internally do like `$this->algo = clone $this->algo;`)? > Sorry I meant like `$this->rng = clone $this->rng;`. PS: Please don't reply to this erratum, but rather to the previous message ;) --0000000000000dad6e05c4528ed3--