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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8174 invoked from network); 24 Nov 2022 22:39:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Nov 2022 22:39:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669329593; b=GsQTg85dc0V5k2QDPs9hv/Yv4xA7kAQ0BpRg4jtcwVLlc4Slr386gPObjJYmEdrEMZ/E22qpVj puzqcQOAF57s6go2xI9nuIJcPWyJ8M9z+RLOAxeb8QH/HVnp3S94dslZ0b368sjSaHKL78FEqW DhJLmLjSxOScdb6dKQopCaOCnuKDjKLjJDWO1xYBshefBLBENtVYXO3uNEnxmJj2SJSUQA0xPz crlkpsaWezhbLBuxnKreEJBts1hAoRDLzuVKiL7Wjyf15pvgTxxF8QwaKjgiPxRT4eM64tCLWh WnkcYbMlzOLE7fBo1PvdDn2fHD7aJ3h65o79UWG3JXkNtQ==; 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=1669329593; bh=u6IZ6Y4iTxoQc3i/USVsIzst+k4mt3tK0cHZaoeVsJE=; 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=Leb30HZL2UMdrg0JuhMBijmbPxkOT3mMNTox3SiANcxxVtnox4VVa2zBn2Hjpg6HZnAZ/M1OYu pKwiPdWw7n3BXagRdHaQbfQAVlJLUdDEJ2CjedroXqKrc9QeQp2l+0dvy7vcwZORApVlH3iAY1 fpMwlwi51Frns3pt4QUdRDvxLCWl7TjuGR5ZQ4QocY3xhL/GPZI+yCxjaJDLjCXMSQtW8GBxaX JWu/qffFVkEsokQkCMPXpZziEs72r1/t0kOMHiLXWXjMrpqoEiEo7SeVqQbavYDhTMeq0ym6PQ NaIozwRgzBiqDkurx+1voAeHEHOd1qFl12RWjprjDcnbng==; 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=u6IZ6Y4iTxoQc3i/USVsIzst+k4mt3tK0cHZaoeVsJE=; b=W9GYZ9oIWhxfKOt/EGQbh6gC7W +AXZ1Fd8aaCcenuinZAB4bU4f4cc6wgS4OdW5HOqlLOAsVl04Gw8g42RZe0ghS9GgU75g9s3uZfBb UiNXCVTPBKa9P48CdKGqsLw61Ey5ZwQ4r+FdxQ/qarLoQnL70aSM0jLnGZRRuKgF3VaDVrNhTMDS+ Qs1IgPhrQmAoMu6IFrFmBwhEn1NJRgZEkKNjDFJX8HXrRImhOtKUnlVlPGRAzQWsICxgJNNHMB1Se oIf/IKeJsqf+qYsXsd354dsf8Fjm2Gr0BMHOn/Q4EvuXB7d43VNU4tvDBR8Dy+uwX6k//YUNPrOwK jyOf6n7g==; Received: by zero.zsh.org with local id 1oyKsq-0000Bu-9n; Thu, 24 Nov 2022 22:39:52 +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]:52622) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1oyKsI-000PpM-RE; Thu, 24 Nov 2022 22:39:20 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4NJCbT42msz3wZj for ; Thu, 24 Nov 2022 22:39:17 +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=1669329556; x=1669333157; bh=u6IZ6Y4iTxoQc3i/USVsIzst+k4mt3tK 0cHZaoeVsJE=; b=DA1DTzvL58x4NssfXmDBqvymXW8QAfnVrVnL8Ks38bxYlOOI iFOYwfkb44sD5E6LU1ItTrzeXMgVKBSNjfrYq5P8r3bc+An/HtDmYD2QWBG0r0Y3 4SBDQjYGbt/dF07nWNTslgQhhGbKaVlD9y9aSoGq5Vx3tHXA3Doyw2r3ZgrXFihm xGtSCJqSXQauCZXBorSMeLEcOuoxlZUwGAsrfQ5MCiMDwQrnJX8keRcLlMUM2JRQ TQyzcaxcMIVEqpnZ2PeR2TTAvugDFnqfrpqx4GwXDFIYN8WYlUx6t+ar3WthG1vQ FuiDZB/wOBTet5m2+YRcgFlRxadMaEWRq37fEQ== 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 dkOAU6-KpRtF for ; Thu, 24 Nov 2022 22:39:16 +0000 (UTC) Received: from [192.168.78.67] (173-207-53-93.cpe.cableone.net [173.207.53.93]) by iris.zentaur.org (Postfix) with ESMTPSA id 4NJCbS6J88z3wZb for ; Thu, 24 Nov 2022 22:39:16 +0000 (UTC) Message-ID: <7235d036-0a4e-4957-0e09-ae074181008f@zentaur.org> Date: Thu, 24 Nov 2022 16:39:07 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] zsh/random module [UPDATED] Content-Language: en-US To: zsh-workers@zsh.org References: <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> <20221118162325.7i3qzqljyx4a7z3h@chazelas.org> <20221118181253.cdejvepmnsmia7jm@chazelas.org> <20221123195222.GO27622@tarpaulin.shahaf.local2> <20221124161958.jh3xlzq7hiyw6vut@chazelas.org> From: Clinton Bunch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Antivirus: Avast (VPS 221124-6, 11/24/2022), Outbound message X-Antivirus-Status: Clean Content-Transfer-Encoding: quoted-printable X-Seq: 51068 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/24/2022 10:30 AM, Roman Perepelitsa wrote: > On Thu, Nov 24, 2022 at 5:20 PM Stephane Chazelas wrote: >> To me, having $SRANDOM added to core zsh, and maybe a >> randint(first, last) added to zsh/math would be more than >> enough. > This is my opinion as well. These two facilities are easy to > understand, cover all use cases (even if requiring a bit of extra code > for the rare ones) and are easy to agree upon as far as the API is > concerned. > > Roman. If we move SRANDOM into zsh core, we'll need to define the behavior if=20 urandom is not found.=C2=A0 The module fails to load if it doesn't find=20 arc4random(), getrandom(), or /dev/urandom, but we can't do that if it's=20 in core.