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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23479 invoked from network); 22 Nov 2022 13:44:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Nov 2022 13:44:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669124691; b=ja2eox68ejSQ+pBVdWx6/2JaiLu1PEdKWPQk4GZvR8KVtOoQ++odMZdvDeR4B9s+VXWpuYH+Po 8v0P5Q/I5iAZ3gfQoqJL2+lLOwt8bfsVpbKW/faSOjs4DCM0UYmhTxrph7I6dKaQdievGkiLCk XnI2wYucO6jiu7oaEcA4HzO9J4UAir/iGOjjGP1nU4YseGJCDqDz7q/qfKKOUaXE7MKi2WbQrA BYM9Gr2S1Y/sCugf30863825dW1dVX54VEoOBkTlbvAKpLD5QicJCcP767eOB/ulHJHTuDfmlU PK7ODlrvjetA12oAJpwn5UI5zMNFwvtqeSNN9nFQc/040Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=dana.is header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1669124691; bh=vMByODW/bpgGTHMfEQf9NRMfczxStBgVzQPoPIdfPLE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To: Message-ID:MIME-Version:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=JN1PO0kfmKJg54lnkswDZi9xWc8KjsZDCcRHxNNJqIpLnqgAuPqRCjFh/KtEybTiy+RBw4zD3b hRvZ4izbJjoXDkf1b4Ao+Z3W4wc/kempvbiVnYnkyAjljBURUj3Ly7Ngws4OinCXds1JP7rXdn Aj3Of+P9b5+MFrSzqhG7myyshBBOfJKdscTHVfpSEH+PI5+TrvMpmXUEZ4bEHUxyZMD0YtAymU gWwaVQ4zlrPjpcwxXHZ8mGT0XPOk8tJSa08a9zT9Jx6lc95y4O4duVWYWqESkl5KR4Tyf5gH8u P1yPu/180hukluk5ZdXYcc0usvpsea55xd2odS+IDzsAqQ==; 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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=vMByODW/bpgGTHMfEQf9NRMfczxStBgVzQPoPIdfPLE=; b=Ct7cQzkIXkPkFKHYlN4eBOH5tC lYu5YC8EacMDnM08MziNpUtMPAvMrd1X+0it1zA2NajRrSbEQJIQiCNZqGy9tStQq0Rd6TvfnpM1A nPK2KE7fcMeF5xdNdAjyF/Eoy3BLavjvrDsGnp5W/oAF+hbW/MuChQZvH7H/W3TObI3PIoqCCkJKV 5b2KT/zBGwCIeqOmbOJheZSiY5wZEYRw4BD80GhPS5YtsH6bVGoHExKgnAGE+Xd2NKabCjWrTeWrL UckErKf3dlNHI/ZKdLHTEzS9j1jQSm8Bv46VNIflKqymMzlWpd2ONNtaMFZI6egKh0xivKbLK1+/4 FFZSa+mg==; Received: by zero.zsh.org with local id 1oxTZy-000Mox-V6; Tue, 22 Nov 2022 13:44:50 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=dana.is header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:51229) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oxTZd-000MUc-15; Tue, 22 Nov 2022 13:44:31 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 38F1C5C01B4; Tue, 22 Nov 2022 08:44:27 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Tue, 22 Nov 2022 08:44:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana.is; h=cc:cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1669124667; x=1669211067; bh=vMByODW/bp gGTHMfEQf9NRMfczxStBgVzQPoPIdfPLE=; b=jKNYBd1BBrrzAOpBB10Hjb64oa QRFVIcKdkVg8hAF1BefrriZbVVLxV5OMGzOpoQUh8yqbdh+clR+9y4Eu8TdVj0W1 G56TM8gBk1OLEukNKbdqkmc2pVeCP/0tapiee48HZy+xrSsEaSOcIxdNW5G1mvea UPUBZ5DyVvTNNI08LtmBbFQwfMShKDo4aYoVmHhXnTbcrhhzFbWyamgg/oICpLhP 5sL9+esz8Hr7cUEhLw4hUxRIqDTIWj1yxo01DDCgdH1XeNuigTw3YeL9dtBLjiqv 3EnXwk5DtzLg9X+9hihkcRoen3giSW44qhMHlFM2cyC3aYWipjtCrg0KlUXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669124667; x=1669211067; bh=vMByODW/bpgGTHMfEQf9NRMfczxS tBgVzQPoPIdfPLE=; b=WgnbzsUO5sJVNeTFx4AsXjBWN0NBWfe2py5w94Ti7dvl fzPHVSlhNMc3ubZuMfp0sfm1WUX0T69ng0z1/FPl0PdYBl9+Zsy9X1VNDCKwLB7r IbeuQGDyIfvERVpMBnNox0cSSorZHIS4o6czKx9D8H9v7ODiXbpmCLRPfrucOoXx 993sSzU9fyMHt1p6bUuvS0BvYh+ogXj9ILrywILr2AzskGOVKOjk8X9rs95b7ygP tb4XCMv5W67zyYsiU3kA7YV8gpJkpOSD3WzNHATrbuWv36y2IUO7sgxT0WVnq5H6 q8ocgZNAZzU4MFxT3iOEM6lzMonvEkf/nk4znC/dhg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrheelgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtsehttd ertderredtnecuhfhrohhmpegurghnrgcuoegurghnrgesuggrnhgrrdhisheqnecuggft rfgrthhtvghrnhepgffgieefteeuuedtiedttddtgfegtdelveejlefgkeetkefhkefgtd egfeeuleeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepuggrnhgrsegurghnrgdrihhs X-ME-Proxy: Feedback-ID: i9be146f9:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D94DC170040C; Tue, 22 Nov 2022 08:44:26 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: <3c902982-0602-5b16-80fb-355ddaa4fe12@zentaur.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> <3c902982-0602-5b16-80fb-355ddaa4fe12@zentaur.org> Date: Tue, 22 Nov 2022 07:42:40 -0600 From: dana To: "Clinton Bunch" Cc: "Zsh hackers list" Subject: Re: [PATCH] zsh/random module [UPDATED] Content-Type: text/plain X-Seq: 51024 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 Sun 20 Nov 2022, at 23:05, Clinton Bunch wrote: > The only thing that feels inelegant about the getrandom command is the > hex-string default, and I would welcome suggestions for a better default > action. Sorry for taking so long to get back to this I think there's some concern that the API is a little weird (or at least ambitious), which i'd agree with, though i don't have any specific suggestions for improving it right now, other than what i've already said But i do still like the idea, since i personally find myself needing random data in the form of bytes/characters more often than numbers. It'd be nice to have an easy, cross-platform, 'correct' way of achieving that. And i don't consider it outside the scope of a shell that has a built-in FTP client lol Matthew's idea of limiting it to an SRANDOM parameter and an arc4random function (either initially or instead) seems likely to gain immediate acceptance, though, since there's not much to bike-shed there. I would certainly sign off on it, even if it's not everything i want dana