From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#58472: [PATCH] Make `message-unique-id' less prone to collisions Date: Mon, 17 Oct 2022 10:29:07 +0200 Message-ID: <87lepehmzw.fsf@gnus.org> References: <871qr794o2.fsf@rfc20.org> <83sfjm3lvu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: matt@rfc20.org, Paul Eggert , stefankangas@gmail.com, 58472@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 10:30:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okLW3-0007JF-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 10:30:31 +0200 Original-Received: from localhost ([::1]:50826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLW1-00045l-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 04:30:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLVh-00045c-0K for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:30:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okLVa-0002CF-M3 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:30:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okLVa-0004BO-E4 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 04:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 08:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58472-submit@debbugs.gnu.org id=B58472.166599536616004 (code B ref 58472); Mon, 17 Oct 2022 08:30:02 +0000 Original-Received: (at 58472) by debbugs.gnu.org; 17 Oct 2022 08:29:26 +0000 Original-Received: from localhost ([127.0.0.1]:47193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLUz-0004A4-KN for submit@debbugs.gnu.org; Mon, 17 Oct 2022 04:29:25 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLUx-00049m-8u for 58472@debbugs.gnu.org; Mon, 17 Oct 2022 04:29:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ty6GzvDBgl8ZkqIW3ujdwOLGInn+i01Kxa2pTkH8K4Y=; b=P6q2kbv46E2cehfyMi1J55om3E xXQDL2g/tvrxqa4ZoU61gAB796oORT7farCk6EtG2Xoz5LRIavfDbSP1hYjH4o9DKbqhtnGccplfZ b4k1QscKRaYvI/+4XYgMd6iOB4voCsL6mvHv4G56VcrQTTXE+Fn693zvo+/tJtp+Mkos=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okLUi-0006dI-Jm; Mon, 17 Oct 2022 10:29:14 +0200 In-Reply-To: <83sfjm3lvu.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Oct 2022 11:16:53 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAABJQTFRF AAAAHBktSURhcWmb4dvs////Uu1f0QAAAAFiS0dEBfhv6ccAAAAHdElNRQfmChEIFzpjQHb4AAAB AElEQVQ4y4WU2RHCMAxEfaQAQlIAEAoIWAUQ5P5rYu0wDKMD9Ice0q5kQQj/Iy6lnI38VFvcVT5V Lo1sEtBtHBcCOYmC/jmBsGmgCa0mQcnTBANKTJC0/B4Z4CGT4xtIkUjokYo2PLUegwGW1uNata1C tc+hQCUMnTVIfbWRFHgb1Wv8CbjbEgPOyNNt0Y84o0mfQj7I9Yjvjg0dvrJHqEb0ilVo5zUz2vMs O8Xad8FVdOqeaL8s4amtgot1PZivX6J68LSLqHyI2G65HIIOqNinhltzQHau1gdJDv0J52qxL/s3 A7DZIMyOeCCvgthxRY6r5IlnpwDAXmIk/v7veQEKpT5gmoxTJAAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMi0xMC0xN1QwODoyMzo1NyswMDowMFnrRkcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAt MTdUMDg6MjM6NTcrMDA6MDAotv77AAAAOHRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCAoYykg MTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueflXeTcAAAAhdEVYdGljYzpkZXNjcmlwdGlvbgBz UkdCIElFQzYxOTY2LTIuMVet2kcAAAAmdEVYdGljYzptYW51ZmFjdHVyZXIASUVDIGh0dHA6Ly93 d3cuaWVjLmNoHH8ATAAAADd0RVh0aWNjOm1vZGVsAElFQyA2MTk2Ni0yLjEgRGVmYXVsdCBSR0Ig Y29sb3VyIHNwYWNlIC0gc1JHQkRTSKkAAAAASUVORK5CYII= X-Now-Playing: Hannah Diamond's _Reflections_: "Make Believe" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245699 Archived-At: Eli Zaretskii writes: > So I'm objected to any of these wide-sweeping changes for a reason > that is so minor it IMO shouldn't have been brought up in the first > place. I regret I didn't stop this discussion back then, because it > has now snowballed into a monster. But better late than never. I sort of agree with you here, but not totally -- I think a `make-nonce' function would be useful in general, because this is an area that's genuinely difficult to get right, and having a function that does this for you -- correctly -- is good. But, like you, I'm not sure about the proposed changes otherwise. And, like I've said before, there's a reason the Message-ID is on the format it's on now -- it has information that allows users to do work on it (so changing it will break some use cases), and it's short (which makes it efficient in many algos), and it's obviously "good enough" -- it's been this way for decades without any problems. So I'd prefer not to change `message-make-id', but adding a `make-nonce' function would be nice anyway.