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 10385 invoked from network); 24 Nov 2022 01:07:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Nov 2022 01:07:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669252034; b=CCCeas0RA+KB0TO/ngLdDmuamo0UPm2ugCU/r0dHOJave7YkR7w3b9+rG3zPAfSNGpTW7970s5 6e4qRDNOoxUexx6u0ACysr3VozYM9gEqhi+PKJd4vVNShQTKsjbvDMPRMJJ1BbQCUPwzYAd/lH kzIxUeFq+H8OLQOA7Y6s+oY1/kMzQ6Wo+yjgMUzt/1G2G1oVrftBVtgNtWp9Y1QGMcf0cv2YJn Fa+im5pe4+N3XPw/nCryEluFPctu88GEezXVzDF2Z6MsFDYcxn1J59QWxu/8vXZZc4DNkVjqK8 fGgWNY7ksaAnNusr9/xqJFtMMNpcxdbXIyvB2qLVBuPREA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; 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=1669252034; bh=H/YTJRT1bNzbN5hSmyJzHwwcrJg5b9cww/Naa5T+vdQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:Cc:To:From: Date:References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=NLsj7t2a+PlOMxECCjZTwlm71Xal3UGDcvN5dE0cHRHUcZPcZtiCKvLFLYy3x3K0cAlTTwIGdY JHbKWKN+iPdPnss9hvKMM3Qcim+ZHnTOEWFoabAyl5K2m6YmZSgY1RVg3jzUt5khue5y6Zo4Qu 38mVRG1RnPtNyn6opIVLGqW/mEIlbmflE+xEZTALRIiRk7semWRW30zOL1V0SIlT3kRdSVWvJi Bj51uft0TO7AKHppgl//GDky2CwMYi0FlymDnAZRh8uaRFZklH6UtP7vIjaasg2sW0FrYgmFJG yCJxLdyOuT5zwELOyLLS4BFiUl6eI8Os64Ktp1wn0F7WJQ==; 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:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=7jvUEPOI9i8VCi9ADCpBUsqGoeIF2aCLlh2cG72sNGg=; b=N9mk2rE8wZvWZtRpOpEQ5Ub0j8 mmxxxYrZ2E8pw+4+fNN0pm/b3h1kz0iC0N+FrfdGnrJtQO4h4n7opehX3IGBg7II+SpAwE9YpuvJW NzvPiN5AkmmyY+oTiE9KiI6+9TAcKXW5vktflj4C4+by9jRIJZ2ATm+njc2HpaA3jW2IYa7sF0Ra2 sb8hpSAul1L0AXR1Qq06coOA5rA3yB02HDR/OFpknNrDf9m0/qjz0liigT+Fy4+QbmGdbIONvplwo ZbNgZz5gZJuEHnsVZR7mRj0cZd8NdgbkP7h7nUVYAWxZyVD/5P9IeMbLiDYYfiNakfU52Tb7K/6/d vJ993Rng==; Received: by zero.zsh.org with local id 1oy0hu-000DLk-8b; Thu, 24 Nov 2022 01:07:14 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; 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 out4-smtp.messagingengine.com ([66.111.4.28]:59933) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oy0gq-000D1Q-C3; Thu, 24 Nov 2022 01:06:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 20F225C01A1; Wed, 23 Nov 2022 20:06:07 -0500 (EST) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Wed, 23 Nov 2022 20:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana.is; h=cc:cc :content-transfer-encoding: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=1669251967; x= 1669338367; bh=7jvUEPOI9i8VCi9ADCpBUsqGoeIF2aCLlh2cG72sNGg=; b=b H162gPD1RXmlhDUQTxUCwCjcGzfFhtOteOLtmPsOdP2yhryVb2XxoZFNb8ZNX6hw qHKUPnSxS9FRHYatqGAfNU55w9wZ2AKU908IFD9ofRZu7N1agpuDKMKZQfqd+aZu MzfG09VfUTOksJKrXVdPFtXn2OXV6JZEBW705S72aWGz9BvdufguthIeeePraFIp QzE+aBoWushQbO6MmlzDYcapdXC9UzdIqkVbXnoweerQMtRvUn/WitbhdBTeWRKr rtHe6+0Gyj3R8veMCdrCaiYwyRUzB/3LgD9KoTLsqnnawkB/Liu4NnTV9igNgsX8 LoXnd4DFwsV93JSlcobug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1669251967; x= 1669338367; bh=7jvUEPOI9i8VCi9ADCpBUsqGoeIF2aCLlh2cG72sNGg=; b=Q IgsS5uGWMFlXzoVJrKOGQ+wDtm1uHTjDCtzRWaIpybdBJBRwFDax+WTeee5Jat9H uiVgfwAEeOsEpJCTzoRQrNGumjgPKs+VsBx1Xx9dHrssjVCxhOqb9ww+PqsSSN+4 TE2rtuvzTHGwo750n6HJ4q3T+AGmG/SP7Duqa2/21PfWfreEh2Bl2qdZYyeu6VPB Hd3xyiY1fKK62aTPQ7jelB3gxXm5cXNXmxSzOhIZHKoUzoPVYHCDvuHcPHZOwAlO 6oRnnvAzxp5+Fc2fPfvjXipQVgEfZnCBExyD7gR4BiIhDf7IKwBeLMsmO2Vykaop inw7QdUYyCarGcxAylNcw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedriedvgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtgfesth hqredtreerjeenucfhrhhomhepuggrnhgruceouggrnhgrsegurghnrgdrihhsqeenucgg tffrrghtthgvrhhnpeetvdekffeuteeiveevkeffhfdtgeduueduiefgfefgueektdfgtd ffheefuefhueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegurghnrgesuggrnhgrrdhish X-ME-Proxy: Feedback-ID: i9be146f9:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D78BE1700090; Wed, 23 Nov 2022 20:06:06 -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: References: <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> <2df1001e-69a6-9785-70a6-8416fdcffd8d@zentaur.org> <0a07afaf-1194-6752-8133-8aa6b689724d@zentaur.org> <20221123203329.GP27622@tarpaulin.shahaf.local2> <869f6d65-15d2-477f-b78b-02427a0c1395@app.fastmail.com> Date: Wed, 23 Nov 2022 19:05:45 -0600 From: dana To: "Daniel Shahaf" Cc: "Zsh hackers list" Subject: Re: [PATCH] zsh/random module [UPDATED] Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 51055 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 Wed 23 Nov 2022, at 17:54, Daniel Shahaf wrote: > Well, agreed on that last sentence, but note that =C2=AB-c 1=C2=BB in = the patch > means one byte, not one nibble. Right, i misspoke On Wed 23 Nov 2022, at 17:54, Daniel Shahaf wrote: > But 1 /is/ the default for integer mode, and I don't think anyone > proposed to change that? Rather, it was proposed to change the default > for bytes mode from 4 bytes (8 nibbles) to 1 byte. Do you reckon > requesting 4 bytes > should be the default for that mode, as opposed to, say, 1, 2, 8, or 64 > bytes? The default for all modes was initially 8, so i was thinking of that as a counter-proposal to them all being 1 as mentioned in the previous paragr= aph. I think that no matter which number you choose, if you make it the same fo= r all modes, there's going to be at least one mode where it does something tha= t is rarely (or less) useful, like returning a single byte in raw or hex mode= . But i don't know how you'd quantify the usefulness of any particular alterna= tive, so i guess i'm just thinking out loud On Wed 23 Nov 2022, at 17:54, Daniel Shahaf wrote: > To be clear, it's not 1/1.9M, which is about the probability of a rand= om > Londoner being at 10 Downing Street right now. It's 1/[10 ** 1.9M], > which is about the probability of correctly guessing the genders of all > Londoners. That sounds very nearly impossible to me dana