From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#58472: [PATCH] Make `message-unique-id' less prone to collisions Date: Mon, 17 Oct 2022 11:47:30 -0700 Message-ID: <87fsfm70e5.fsf@rfc20.org> References: <871qr794o2.fsf@rfc20.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="17103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58472@debbugs.gnu.org To: Stefan Kangas , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 20:48:14 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 1okV9p-0004Bj-KT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 20:48:13 +0200 Original-Received: from localhost ([::1]:56100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okV9o-0003lV-Dj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 14:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okV9e-0003jo-GV for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 14:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okV9e-0005hG-8r for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 14:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okV9d-00057N-UO for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 14:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 18:48:01 +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.166603246419561 (code B ref 58472); Mon, 17 Oct 2022 18:48:01 +0000 Original-Received: (at 58472) by debbugs.gnu.org; 17 Oct 2022 18:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:49972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okV9M-00055Q-2V for submit@debbugs.gnu.org; Mon, 17 Oct 2022 14:47:44 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:44879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okV9K-000556-GQ for 58472@debbugs.gnu.org; Mon, 17 Oct 2022 14:47:43 -0400 Original-Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 2FE27E0002; Mon, 17 Oct 2022 18:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1666032456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cJ0GINBgquaJ44ySbuKX2bhqiqqCLIPfDFWu6TpHpkQ=; b=ZxuWCFzXorClg8mlvbbcFGLQF/XvavKm5GYW8C0zobAIjnWKjrbLG+XqfbT5cl850y1Bdk Ka1C39PrviP3gXy8az8y/z8R8/xMUJ4lq/XfiVK/4LBuidwQjWl69dP6kDF6X58eyDeAs3 j8CFn8vZQvJjCrRTE2IXsEXGdsj6xTNxreXx54xlaeaFim8jOL+LKeWyFoiLkI71FdN2sh 16t7252L7LusbUPjYvyQJSci/4xLBqd8YYkA+L7n2IK1N8x7E0CnsQa4HsZBi/PuUBdxPg TT7nkXLRZxDuhOtgvTDj2X4irvUDLLTPQ10WjxWAI74+I+6KQZWrbM1c84HbhA== Original-Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1okV98-001AQe-1F; Mon, 17 Oct 2022 11:47:30 -0700 In-Reply-To: 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:245750 Archived-At: Stefan Kangas writes: > On Linux, flags 0 and GRND_RANDOM are equivalent (I read the most > recent kernel code to verify this). But I have no idea about other > platforms. That is interesting, since they are documented quite differently with no hint that they are the same: https://www.kernel.org/doc/man-pages/ -> https://man7.org/linux/man-pages/man2/getrandom.2.html But, yet: https://lore.kernel.org/lkml/531cfcd62151916cc7fbade2ecd0311fbafc02a9.1567126741.git.luto@kernel.org/ ...would not be the first time a developer changed code without updating the documentation.