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=-7.0 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 13948 invoked from network); 11 Oct 2022 03:44:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Oct 2022 03:44:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665459887; b=Up4xevQEbUFCx3RT8fs2HvBNiVHyd45NOShHefJ28mAPz7xXFEC3hqOsz+yXB9UuqZ8doOcctR fsQbyZt9l9GpONzwJR0mpQaurm8prpkOVTejml/43CavKmGaOC3No48/guLx4lopj3/4ESn8Kb C4g7Ft8lEv78FGY9BtdAXjk67/wF5zLjJGtiZIvPD+5XGzd8NJtdZHlvWG49N34eKCZ9f9jARE ZXkVnaZ3uZeR7tqnQq3+7Za2PQKxXSvz7ZDFI73kAVgZv5a5hOb71Mgz77HXkUMNRb95TTda02 yGR47f9Y6/3qqPt+c5BbGGKNIhlcFAiBUE6eoyTe8j+fyw==; 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=1665459887; bh=YpNPa/PlgR+quWWtz9jzahp2E9pQ6lFxqFdRFb1BwH8=; 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=QBpCzhNbAVZnc3DGIrpKxe4Lak2QltuilHDfOxDz12sXy3ol2DHc6nVQwl9h8Ve0776nue0B/p bMyb+DOjLrZ2vncL5UXTGxvadr32um6eV0nKte+4YcgSGDddKnBbaPr3ZYT37DdrsEPv4jiMvz iGAH8bingEAd9e/w30FYRevkktE+7lLUm8czDUzOU5JthFa+lyllfkp2Bc+HOvI29FamicSab/ 8wQjAOQvbHR8YhspWaGmCigo83pYfa7Ot46EIKvuBmF94VNWl9z7++nFKef+82BOqmxmVjjGU9 GlMQ47WKtSCcg22R1NZco6e79yvHZF4TnQStNWfV9/FkSw==; 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=YpNPa/PlgR+quWWtz9jzahp2E9pQ6lFxqFdRFb1BwH8=; b=ESEWPhi59+aCQh4JEc+KE9OpHY qU5mQyAT1I6kvSC2FoHPsU0tXFdzc56UZgguLChJ6o74tRh+dYo6W6tDNYUbYDfRqN3Ag/XnkH4B1 VZEz9r4QpW7VpfdYCYFNKSkaAB+SRuUbaZvMDF+9a2sbLRHOQAxVgrMdDZ9pKZJmEkBxxv61mG/cJ neAA8RY6Qv9zlhHZxOEoJHyP3Qb/LlElhwXcz3H9QjmOyUIEKhvqEQkCKt5uyPgw0iWfu/powjqYK ylKBj31TnwmdfXg1YdXLwJZ5UfEsN6doh9Nk5ZhUghdbY2gjHYXWrGfVuTwxLGsgKY4KE57Lf4w/D jHsqS2aw==; Received: by zero.zsh.org with local id 1oi6CF-000Mzh-DX; Tue, 11 Oct 2022 03:44:47 +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]:46680) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1oi6Bw-000Mek-3Y; Tue, 11 Oct 2022 03:44:29 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4MmhVM0sgVz3wZj for ; Tue, 11 Oct 2022 03:44:27 +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=1665459866; x=1665463467; bh=YpNPa/PlgR+quWWtz9jzahp2E9pQ6lFx qFdRFb1BwH8=; b=Rys+onpaWsg4UgDNblxpFzi7iV0sHT8FCisRnHWnUzzdRd69 0OdekMP7oU/9djQgLIJEZDtsEBRhXiQ0AWTLSiUw0/dAH5w45XjN0oJ6g39Q9ofr zP09HYTzTCokeRVqk7ZApXXj3QvIfmfs26jk1e/nQoi4pfjyty/epXtmVhwVH/KG p24SMKdWPYzXav/i3dWmCYa6AXF2H95nVy7tFw1TbJkph4Vdsn+YSl0ElRFthrac tZEtRzR7lOmyld01w8TpxQCYpoICguavn2kWDbLtejeaf9K3TjuKuSUKB7+As9ZH nvBDN6BXdaRWYRdiGWTYyJ6rxXoYwTGUTULhpA== 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 x5eOlJzmUsH7 for ; Tue, 11 Oct 2022 03:44:26 +0000 (UTC) Received: from [192.168.72.136] (unknown [136.50.213.220]) by iris.zentaur.org (Postfix) with ESMTPSA id 4MmhVL4qHkz3wZb for ; Tue, 11 Oct 2022 03:44:26 +0000 (UTC) Message-ID: <473d6200-de7e-05b0-8ec1-cd49c4258cf8@zentaur.org> Date: Mon, 10 Oct 2022 22:44:26 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: use of rand() in zsh Content-Language: en-US To: zsh-workers@zsh.org References: From: Clinton Bunch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed X-Antivirus: Avast (VPS 221010-10, 10/10/2022), Outbound message X-Antivirus-Status: Clean Content-Transfer-Encoding: quoted-printable X-Seq: 50776 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 10/10/2022 10:34 PM, Bart Schaefer wrote: > On Mon, Oct 10, 2022 at 6:32 PM Clinton Bunch wro= te: >> I wonder if it wouldn't be worthwhile to create a module that gave >> access to better sources of random numbers on the systems that support= them. > zmodload zsh/mathfunc > print $(( rand48() )) Yeah, I know about=C2=A0 e/rand48 but that's only slightly better than ra= nd(). I was suggesting something that accessed the kernel entropy pool like=20 bash's SRANDOM variable.=C2=A0=C2=A0=C2=A0 I know not every Unix has such= a thing, but=20 it would be useful on those that do.