From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13910 invoked from network); 21 Nov 2022 05:06:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Nov 2022 05:06:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669007180; b=aqPRutvwRvm0ryvojSw3sntMteS4o8mf1ENbmTUlIXFLse5ZRgjrK/6SZhsjERX4Uc/ehdFXM+ r8fuIrXiVBFBvHu5ztILTpaoMUb5a4NF+qQ+tMocXcgNklfYR/nkyxg11zLbbqWaue1G3/aZ90 YKyq/P17mUvmKtkn27xY7a/gD+QkSZj3hsgtlx8NAuqtBqYgpRBw7Lc3ZXBPiGuc9nwYCmfWoR PjB6aDFcSVeDABGV/vpR64bYUpncaXxHzHraB2WcfmUSMXLGRNt9hx8oEbgfS2jRKItLqM8ALS /Y6nDB+EtwYNOWaFQQ+H+XiFRjKPeK1RnGWLlRXODpfOOw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1669007180; bh=KVb1qiykuB1iUJsJh+ww/BIhMzlhLXJKv5/gwHIbwxU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=UfGt3aIKhEgnDfG84Xw8CZ53s9Y/MtBF3/JGkb0OtLuKlUMaAeAn08sQoclFOM0JejWbm1aG+E Da5XIhGMSg4VpzwfBd6PSIlljECLK5CDTwJ491/hlWeHXb1kIMPCMJuCtUgGDUlfbVIo410jET BQg99Eiq3mZqaLRitSASMHhTlxK9Gni3q6IXVk2DZfb1rnGYcSKZT+VElLxZ+eUnt/1nPQupNG vhORoCQi2ark/0Trut0WNihuE7Sf9yLg6rBpvXuEzXlwPYclSgX3guGgLylcrLIeCZrQbvu5Yc Fxk1b4MwH39wVz9jkra9vYdy/7pLWuPKnLrKtmoGwve54w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KVb1qiykuB1iUJsJh+ww/BIhMzlhLXJKv5/gwHIbwxU=; b=bpQIwrnXPynewGzXqEWzMh6ZA3 0URAfxHYyT7SMH5+HMUjBkzijTn4dJMkVqgPXhXtAK7iFeC11TpS4Er5xbukiFxxGYE/bo0iSAicF 8dcat6uxaKeupN9fW7qVuGa5++aVdfRDUzLNTrPMmJ6f3aCq5iIHnp2+ZsPQ1UW1ad77RM94m6hbD OjtUuCjwlOlDj6i+OZMpDT1iDi/MLO1maRfb8IzGRxQXjamkw09cDFfBKItV9nE9Q5c+yTxz+gLBt Z/MJp37TOeh+q919hZ9fWvzj65/pH3XxTZPLfgfVJt+ZisAxxvNK9B1+5TsleB0BURPLFdgZOS+Il p/oHtmfw==; Received: by zero.zsh.org with local id 1owz0c-0009q9-IT; Mon, 21 Nov 2022 05:06:18 +0000 Authentication-Results: zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none Received: from iris.zentaur.org ([198.58.127.206]:41438) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1owyzu-00090L-E8; Mon, 21 Nov 2022 05:05:35 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4NFwM1174cz3wZj for ; Mon, 21 Nov 2022 05:05:33 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=zentaur.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:to:content-language:subject:subject :user-agent:mime-version:date:date:message-id; s=dkim20200120; t=1669007132; x=1669010733; bh=KVb1qiykuB1iUJsJh+ww/BIhMzlhLXJK v5/gwHIbwxU=; b=KaJSXD4LHZ0tKkctXWwaPEJ+ybcQCbyBXwu8TCCXEaB7muN1 1uQQTaWLB4/zOpMEGXe4eHtLzdNKQe+XgyDDf91717a98FYiarskLxmtRhixCwlt ht7TqnRMZzw3qilby5ySk45zXiONgIfS3ZDZVwfq2/2UrZwYoxMmaT/E4HloSRe/ Tm0Ctl0/ioaoaRe/16UEON2Mdi6di5MQQT8Is/kjmigMRy+SM56T9pH1Ob00tGWh lgixklqa86fMJ9wTqiIfgWNkE/Kg6KEuh2akqbtEFQn/yF+uixgWl81B0/zJM6vP I6YaVu/Lm9K22sLpwdJ+PGkx6V9d555ouGWwyg== X-Virus-Scanned: amavisd-new at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Z-4_so9aW6K4 for ; Mon, 21 Nov 2022 05:05:32 +0000 (UTC) Received: from [192.168.72.136] (unknown [136.50.213.220]) by iris.zentaur.org (Postfix) with ESMTPSA id 4NFwM03pDBz3wZb for ; Mon, 21 Nov 2022 05:05:32 +0000 (UTC) Message-ID: <3c902982-0602-5b16-80fb-355ddaa4fe12@zentaur.org> Date: Sun, 20 Nov 2022 23:05:25 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] zsh/random module [UPDATED] Content-Language: en-US To: zsh-workers@zsh.org References: <741b77be-b679-76cc-f8ec-49c9d89323c1@zentaur.org> <1e8ea669-7a25-b321-6024-72dbc43ac023@zentaur.org> <41205a86-8aad-4821-baa4-1d2ac9bf3c5d@app.fastmail.com> <1b2cafe6-b4b5-c59a-11f3-4dbc1e99e2bc@zentaur.org> <6275a5ac-3a47-f591-7b3c-380ec4fed5ac@zentaur.org> <3423b634-a7c3-9efc-92cd-b9b995ac1c27@zentaur.org> <30a7e749-7f30-ecae-6479-a345b1682e7f@zentaur.org> From: Clinton Bunch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Antivirus: Avast (VPS 221120-6, 11/20/2022), Outbound message X-Antivirus-Status: Clean Content-Transfer-Encoding: quoted-printable X-Seq: 51011 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 11/20/2022 10:17 PM, Bart Schaefer wrote: > On Sun, Nov 20, 2022 at 7:16 PM Lawrence Vel=C3=A1zquez wrote: >> The concern is about publishing (and thus committing to) a complex >> API right out of the gate, only to later realize that it is inelegant The only thing that feels inelegant about the getrandom command is the=20 hex-string default, and I would welcome suggestions for a better default=20 action. On a side note, while implementing getrandom, I found myself wishing zsh=20 implemented typeset -ia (and -Fa) > This could be addressed by NOT defining getrandom as an autoloaded > builtin, so that a user would have to explicitly name it with zmodload > -ab, and document it as experimental. I was originally against autoloading, though I now think that SRANDOM=20 should be, but I'm not opposed to getrandom and zrandom having to be=20 explicitly loaded. > > Actually this could be done with -ap for SRANDOM and -af for zrandom, > as well, but they're much simpler and the only reasonable quibble > might be with the name "zrandom". Not tied to the name, but plain random felt wrong somehow. > > Incidentally, Clinton, I didn't look closer at the patch before > because the use of ".patch" as a name suffix meant I had download it > and open it in an external editor instead of just perusing it along > with my email. > Yeah, after I posted, I saw you make a similar comment to someone else.=C2= =A0=20 I'll use .txt next time.=C2=A0 Incidentally this suggestion might be a go= od=20 candidate for inclusion in the developer's guide when pasting into the=20 message is not desirable.