Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116244 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72975 invoked from network); 7 Oct 2021 13:37:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Oct 2021 13:37:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 07F8D18054F for ; Thu, 7 Oct 2021 07:22:19 -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=-0.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, 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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (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 ; Thu, 7 Oct 2021 07:22:18 -0700 (PDT) Received: by mail-qv1-f53.google.com with SMTP id o13so4243180qvm.4 for ; Thu, 07 Oct 2021 07:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mr6w9LYCEulhDOiJhSDX4za5J9lEbd0q8GxQ5GKkjSw=; b=h30zNvs0AnoaZXr4NAk4LA2mwpa/vX7/c6gNFzpPcKSFeN062/7gg8oaSVKwVzrHt6 OUF4zhHQmyVlwPXNQxVQRpzti0fP3gDrGaLVQtIG3V3A59rOF6LOkEp+e9W+AoCOPvKZ hjs26Zj2t/k1zx4O+lnfQsP16Yy9CTv3MmqxTFj+oNFc36OuI5PLb6vtBecOfvDqvLH7 tr+OF2lHq9ko1un4eVR0CmpxkOVgXEBPq05WSfMNru/mTU0noH6ut6M4UDJvE8cPzEGN xM2JVTZbfj/0JZVnkrR1rLgFFik/Tj8HvI0Bnsotpj7x0Ka9T0At+dqDI7FBw+bWrnAS Co1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mr6w9LYCEulhDOiJhSDX4za5J9lEbd0q8GxQ5GKkjSw=; b=mOdvxaPlluCelhGQmsZyIc89/li/Up00Jdm6gbM08Mtf/0rrhfY7n77qCr+POR2hDB wwL6unM3yAhZYGD6Vc19v/Cwbaukwv9SVRoSeOkx8vYtcBj4V1TfuONtRJ+BI1xZmfMs TgkFiQ0UPClQ83KAYn9s3gHcrzQCVKvvdjewF7LgkKKPCAq4ZOy+sXjwUJLAzpnQrQi0 Wc+htC2LeoqnfufQrl4SXf9KY/QK1fNLw5H9rSRx+jCx1ioA0YIZHf6TK8v/grvymu5u ZWNvXHarNPlj+yz9g9w4eATGOmTN+iUVQWBdkCdUmJzEc96vjZ7/ItuAfXfz0+GkWhAI W/PA== X-Gm-Message-State: AOAM530Azn6FXWzQ8I83oiI50g0+CbXvWr2Mqn+zbOmaH0ZXn6L/ezoO OISutRCAxWAjP7bdsa7QJDDzzTM8hKEsedKrjTU= X-Google-Smtp-Source: ABdhPJxL3498bOnJnU4lThl/BxbHhfnamubaJZM/KwS28Q+8LJD6ilMyI2dLvC1RMVR9If/ajs8nVJv2r9Iedyjs5qM= X-Received: by 2002:a05:6214:21cf:: with SMTP id d15mr4387724qvh.34.1633616537670; Thu, 07 Oct 2021 07:22:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 7 Oct 2021 15:22:06 +0100 Message-ID: To: Go Kudo Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000006d590305cdc3fd63" Subject: Re: [PHP-DEV] [RFC] Random Extension 3.0 From: tekiela246@gmail.com (Kamil Tekiela) --0000000000006d590305cdc3fd63 Content-Type: text/plain; charset="UTF-8" Yes, I know the reason why we use MT19937 as the name, but this is not really very user-friendly name. The actual algorithm could be documented in the PHP manual but the name could be better. The problem with this name is that most users simply don't care about the algorithm being used. At least that is what it was until now. For example https://phpmanualmasterpieces.tumblr.com/post/65965628369/so-php-such-documented What I think would be better is to not provide two versions of MT at all and just call it MersenneTwister. Users who require backwards compatibility with rand() can do so in userland or keep using rand() for the moment. Naming is a very minor problem, so I would be ok either way, but I am just voicing an opinion that having two classes with 32 and 64 at the end, in this day and age, will be very confusing for users. Better to avoid such things in PHP. --0000000000006d590305cdc3fd63--