From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 094212138F for ; Tue, 26 Mar 2024 02:07:56 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711415276; b=a27dQ8BW+NyMO7FMu88Nu2arwL6NsfGT5wsbirfBS3JEjqiIKsHT/cXs44ySF7ZTIi0qqoUkFg J4nZmXKuG/VJv1OsbqUZOnachbff4kkfhdN9cONJCtBlvGeCy0TBTtAiZ2tqU8d27i/ohefV2l owPvsmng3PslqHI4/8o8qQUqPiX4UGeTyCLckeXhl02uukDQwY7MbDY4SEgJeCXxaAeTPpS49B TAd7QIumftJ8NRT3TgdexGLO7wuZcvlotHnoYORwqeuMC1Z8UM7++tcInujLa5A++qunTFG106 2z/EBxB9AxVtFEZY9vYeKLkoqvh1VZ2MKT27WBnBgQ5Qlg==; 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=1711415276; bh=AUKYGl2175E/A20pKcbHWCKM6eNBYz/GZ90ZhEMs3Us=; 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=SQ4D6dHckPQDNZl1LT0PkT8uFAHSsYPw9lkh8kh3n1qb9lBjZfyQFjNvCTKBCKHxd9UEEHsNN9 TM8jLFv4lJO3Vkv61NZVlQBIDl8t+A5NNkR58xBbLLrTbf7fS23Qbl6Ldr0DZMxxgDz83nwYTq 0PZZspf5T9ix22gz4hayAuaERg18RXSOhKDMnqoIcLtWVaqirb5xmJV83mG3xABo7x9Q+ANKOc cml5I3JM1Y466BggI27nxv0xJg9bpxYyIwXCGUOu2/Vo1DKWBXpdppx9aYwfm8FqAS8Taba13q rj+NCkkH9Cxl3pT+EBwuKC3i0tzWQruFcPFtl+kYHJ8Pdg==; 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=AUKYGl2175E/A20pKcbHWCKM6eNBYz/GZ90ZhEMs3Us=; b=W68sKMALGAFCirB6ah1d0xLihc phcrhs5fCShP7/wLCdiynVhFJPrSWBXseebEa1+TAxrUb8d8NEA55wNxH52yoT2v7t88K6nhhk5tn 37OEYTNCQTvAL5bVSaPLEKUTjNz1Cb7PLQHQ0RVTDVHm+w+dEf4pFA54Zgyvkl3VFQe8mR20zFdoH QP9YQWS9TzxVlGNKSL3m3gm/0SdBnmEKu8BfF+TEBwJxufXEgjiNmeoMsIL/h7j6rjAX0fYASWS7U 4SARC8mXSCQEmlfxCVR41EZ5VOiG3mhunuvZP3jm5ByZ7M0AdBYkr0TvcioBWh/4gthrZXqLlY5zf zJ2m/Bgg==; Received: by zero.zsh.org with local id 1rovIC-000FGs-Bx; Tue, 26 Mar 2024 01:07:56 +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]:54602) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rovHx-000Ezc-Ii; Tue, 26 Mar 2024 01:07:41 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4V3Wqw1bJpz3wZv for ; Tue, 26 Mar 2024 01:07:40 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavis); 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:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version :date:message-id; s=dkim20200120; t=1711415259; x=1711418860; bh=AUKYGl2175E/A20pKcbHWCKM6eNBYz/GZ90ZhEMs3Us=; b=fAJhPBARO4Nt tZ7x4NoIAmfbtRONh42y4yDi1MptlqKCfToRmUjrydRnD404S1JTUOqYiiOUhIU/ 0XeSX64xT4TA/dXNWaHR8i79jkZML3mSZKH8etakLddB1pYkf3ZuRQrLnU5Dh9QI 4Vd9iD2kGTUsyk09so88muK/eLKPFcTwN9YaQkgJNWAZ/ly7Nqccq1GkFYe1BSEQ FXiLY2o6rg1htKdVlGcfwjjjfxm5NAcfkrkdDNQIWIzpMFb2ExiFNdFocGRIARgr pcBMv6kdaOhzY2H6XvM7gtEAN8bwJKG5DNqQIuuB827Z+dWSvoO7p31ZRqx/QSbf HujteIImwg== X-Virus-Scanned: amavis at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 0ylyyqa-D5rl for ; Tue, 26 Mar 2024 01:07:39 +0000 (UTC) Received: from [IPV6:2605:a601:a57c:ee00::4000] (unknown [IPv6:2605:a601:a57c:ee00::4000]) by iris.zentaur.org (Postfix) with ESMTPSA id 4V3Wqv5qx8z3wZt for ; Tue, 26 Mar 2024 01:07:39 +0000 (UTC) Message-ID: <049dec4b-16ac-43d3-a9ff-5767a2eb36d1@zentaur.org> Date: Mon, 25 Mar 2024 20:07:39 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] zsh/random module Content-Language: en-US To: zsh-workers@zsh.org References: <33926-1711411180.228414@bsCA.-gfZ.3NP_> <5e230a1b-1656-4332-9335-a38d956dac80@zentaur.org> From: Clinton Bunch In-Reply-To: <5e230a1b-1656-4332-9335-a38d956dac80@zentaur.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 52822 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 3/25/2024 19:42, Clinton Bunch wrote: > On 3/25/2024 18:59, Oliver Kiddle wrote: >> Clinton Bunch wrote: >>> +startitem() >>> +vindex(SRANDOM) >>> +item(tt(SRANDOM)) ( >>> +A random positive 32-bit integer between 0 and 4,294,967,295.=C2=A0 = This=20 >>> parameter >>> +is read-only. >>> +) >> It'd be useful to spell-out exactly what the "S" in the name stands fo= r. > I'm not honestly sure what it stands for, I used it for compatibility=20 > with bash.=C2=A0 Possibly 'system'? Does this sound better: A random positive 32-bit integer between 0 and 4,294,967,295. This parame= ter is read-only. The name was chosen for compatibility with Bash and to distinguish it from tt(RANDOM) which has a documented repeatable behavior= . >> >>> +static int >>> +ztr_to_hex(char *out, size_t outlen, uint8_t *input, size_t inlen) >> Nothing calls this function does it? I'm guessing this is leftover fro= m >> the builtin in earlier patches. >> >> Oliver > I meant to delete that before posting.=C2=A0 I hadn't done so prior bec= ause=20 > I haven't given up entirely on implementing those builtins at a later=20 > date. > > >