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,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18437 invoked from network); 21 Oct 2022 04:51:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 04:51:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666327876; b=pGPQvzUNPE22ZvtSi961vV54p9T6Xu6wsZroYIka7Q4vgR991Elwdfk1URurXK5HEtKDR50KuM dGN35gsw0snSIqzsTtWkRmXYZNJCMNYl8JOaaivVUnLiM73CCvaFJ9WnT2+ApNxlbedc67KTj3 EWYtUi/L4oSrfio1rRp6AJSdfPvHRK9WP+6KDkJHL4X7NuPjCrSv/Ewhv+dolB43W42vdapUIB MXXJfPfZ2U9ZCk/11eH7iXuBomRBgAkORXMUlqhlQU76SmC9JKCRes42FPi0cNOEWkFstHcimy +UfUdxVJ1zvx5zyQNxIGeM7PN9emuscBK+JQ+H1Nawc4HQ==; 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=1666327876; bh=jUuNHPTwfekIzIB6wvnax8n/6yznWS+etQ2vaUmPV0M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature:DKIM-Signature; b=WA2TexZgOgFcug4cPmKM7J7WutIb+3Pvm4xINKgcjvw8Y5s6isMpaF0cU0xINh6JluVp5eSZDi zcxMKRVmeyw86ysK+PyNWc0+8wYUwbHPp27Yk4KT37Q5aEo3an8C/PZeY/npHnU54FV1XwDVL4 hg5JNA0mq5FGqQgrv0yPNId2Y6fzNEuF6KSBQSXopb50RaqSO7Rinf2sbG90f97zN08znUT7ao /ZW/RBt5Oba11kph1eWh8dxCvs5KCmoQwTp4k3mv3yvavlpwcM5x/htvb2bPNHXYzaikRdTlvb Pxwy8Yze5tx//kfIQkgayrc2TWGyoiqITG7QmD3E08lQ6g==; 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:Subject:From:To: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:In-Reply-To:References; bh=jUuNHPTwfekIzIB6wvnax8n/6yznWS+etQ2vaUmPV0M=; b=iBZx00ozjhe5NxtjAbj/oN0ghq hVpFTLYcrm/y9XROxKr+Ql3fLSVHR91FoQdma6m/U4Xq6nEYBc68/VwaQk+ochAIzyJbLZOChTV3P Gg7mpD2eAMVzu9pm2TGAEF0uTQhMGX/3l22lF177WWqYi04aN4paI0uYrpDeTutYz9P7u5nzS1f0B lCi3Fc+opo07QjcUytx3j/mCn2aj0BMcoE1gSx7HR8HdkRAGQeHKJaSJ473FRfYvRM4RDELLduJHC 0bsQzFJYLUIs9PgaZQyn+zAnGFbVK2FX6Wj793MPPzymHsWGHzyfjfptYtfAjSNSqLDqTn9qqAEsS wi9+N//w==; Received: by zero.zsh.org with local id 1olk02-00097U-FZ; Fri, 21 Oct 2022 04:51:14 +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]:51316) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1oljzi-0008nw-Us; Fri, 21 Oct 2022 04:50:57 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4MtsVP3mdSz3wZj for ; Fri, 21 Oct 2022 04:50:53 +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:subject :subject:from:from:to:content-language:user-agent:mime-version :date:date:message-id; s=dkim20200120; t=1666327852; x= 1666331453; bh=jUuNHPTwfekIzIB6wvnax8n/6yznWS+etQ2vaUmPV0M=; b=x Y7RaXE5y22Lu5HlqILSnxjRJD45X6Ela6PVwGXWvm5Vjyri+C283ejupbGktCN/3 yzESdz+E6AWIPUZpfJlrpnbEm3t7kApX396pUjQ4lt9WjIQNUZH0zreTempDjy9H yvucaX/WsVMUVRJdS81sBlxE6HWqgPB8Yit5a5yPN9OnpqAvH3ytjqXFhXYNkaQT guRI5KvWNH8InzPKFvs39UW0Fa/zThTlOrJXaecO2dbZqNKDFkGbdkvNQsYNO3Wy 6uUc1hfDXDPTalqBcvXnGEZcFZ26WilJOPZxhNlTw+/g0+jwt3w8JDuGVS3Yp/tl aUsdaUC9sh1JdyLT4Z+yg== 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 Ot3yB7GnfqSX for ; Fri, 21 Oct 2022 04:50:52 +0000 (UTC) Received: from [192.168.72.136] (unknown [136.50.213.220]) by iris.zentaur.org (Postfix) with ESMTPSA id 4MtsVN6T9bz3wZb for ; Fri, 21 Oct 2022 04:50:52 +0000 (UTC) Message-ID: Date: Thu, 20 Oct 2022 23:50:53 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: "zsh-workers@zsh.org" From: Clinton Bunch Subject: Nulls in scalar parameters Content-Type: text/plain; charset=UTF-8; format=flowed X-Antivirus: Avast (VPS 221020-10, 10/20/2022), Outbound message X-Antivirus-Status: Clean Content-Transfer-Encoding: quoted-printable X-Seq: 50799 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: I'm working on a zsh/random module and I'm creating a builtin that=20 returns a user-specified number of random bytes and either prints it or=20 returns it in a parameter.=C2=A0 There exists a small possibility of embe= dded=20 nulls in the output, and I'm not sure how to handle setting such a value=20 in a parameter. One solution is to make it return a hex string, but I'm not sure of the=20 utility of such a result. Metafy looks like it would handle the null problem, but I'm not sure=20 what else it does nor how that would play out if printed to a file. P.S. to be clear, this module would return random data drawn from the=20 kernel's entropy pool, rather than a predictable pseudo-random generator=20 like rand or erand48