From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OHWPIlD9oGLtLQAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 21:49:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6AxxIVD9oGLyIwEAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 21:49:36 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 165088A0 for ; Wed, 8 Jun 2022 21:49:35 +0200 (CEST) Received: from localhost ([::1]:59120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nz1Mw-0005k8-10 for larch@yhetil.org; Wed, 08 Jun 2022 15:29:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nz1MZ-0005hv-3Z for guix-devel@gnu.org; Wed, 08 Jun 2022 15:29:07 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:34388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nz1MV-0007GH-TN for guix-devel@gnu.org; Wed, 08 Jun 2022 15:29:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:To:From:Sender:Reply-To:Cc: 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=b3LUvvVIwJW4mmjAGxggu34yHfz4x/IGKS8AR7da+Mg=; b=Gae9kj81eH2eygBkf5OpsciN2i ht4/Zk4OTdXPX6WaeTWEhSdcDRthvneNToifDw76k2xvBEFArTw4Dqird8bOTu0ElN4YHnuqGU3xM 1Kd1yhRocvt2euRro2PfA+YcRapib/ctK9NhKCIwK8deK8F5UYYR9Vi0oZjGvW3PmahPJ6ISEh+mr Vi0TfSE3na1tLbFnl4jtuGwSvsLT4kp0KlI0RbQWZX/WJMIb+2BVOLHI6iDZE0wmOCFiyv+BPt18j CGoHZ06QSZ0yOY4xk++rxAhey/d663oAU2X7DDZOPjgoi/8wTqB4G8jhGpyXZTAcYSuTEd1zwIO49 dy9Usfpg==; Received: from [192.168.2.1] (port=18332 helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nz1MN-0007Ke-Iz; Thu, 09 Jun 2022 00:58:55 +0530 From: Arun Isaac To: Vagrant Cascadian , Guix Devel Subject: Re: maradns reproducibility fixes and the merits of picking a random number In-Reply-To: <87pmjlfdjl.fsf@contorta> References: <87pmjlfdjl.fsf@contorta> Date: Thu, 09 Jun 2022 00:58:55 +0530 Message-ID: <87sfofkl8o.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654717776; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b3LUvvVIwJW4mmjAGxggu34yHfz4x/IGKS8AR7da+Mg=; b=kCpUFfnvamQFO+Jq5AZcx3AtkVCzKavuEODCZ/fNFKfUcO6T/qCHaGbUH5q93QuZ4Wko5r NdyQJIvQBel+vwLT7veNYLlUkj8nRwDEvMMbsV4CCGrMqEPG4Na/Bw7jfErbF9NC6IOle3 RX3UPUZDylGCxC36xCe0W0PHEyCCJ/zcTF0aHdlqwbtKDLeSj+a+2jk1EyJoGRgZOP1g// z740i/G+RRVAEKSd4GsVbqf9/gNILSuXab20VByRndBQuRMftDpbk34NA7gvC1jiiBF5ei PPtaqxaVdPJAH/RQUhFsFUJeIKtbC4P1SB9jaDc3zM03aXdMKbvJYIC5hYYneg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654717776; a=rsa-sha256; cv=none; b=Q4rBTmfi5jP2+OW978P5DZioXNo2I6rbZDCAiEIVD3D6BQDwKSgmC1Til4mymuyR+shOgz SJ2XGK+zgC61Y6xK4Vcsvm4xe42uzXyd1q0FzoAEs6RkC9S+f7D4uG+8Yek2NJA6RPBid3 /Vbjp5wqCM1CqZ1ofV6MbDQFZUS0Ob/Y4sGxGrsVFVJdFnPz7BTL9afbVYrtCEDGHgcVTx 9pWZihsmreakBaa5MpCPM4XGCD6WYpUiFO6HYzS4tfSooUz47Da3TbZ3zLJaItIDCixT8J jzNfYsI0abDiZBGp/e3KJBw92PS5gxgP9PeJGe/vrcNKurrj5BfuLXEj1MpZ0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Gae9kj81; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Gae9kj81; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 165088A0 X-Spam-Score: 6.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: f+1Q3r2329M7 Hi Vagrant, > But there's one nervous-making issue this revealed; maradns embeds a > random number at build time ... allegedly for systems that don't have > /dev/urandom... see > maradns-3.5.0020/deadwood-3.5.0020/src/Makefile.ubuntu2004: > > # Since some systems may not have /dev/urandom (Windows, *cough* *cough*), we > # keep a randomly generated prime around > > So it's got some code to generate a random number at build time and > embed it in the binary. Now, if there's anything I know about good > practices about random numbers, this sort of thing is generally a very > large red flag! It also makes the package build differently every > time! Wow, great find! Has this issue been reported to maradns upstream? If upstream fixes it or provides us a compile flag to disable this "feature", it would be even better in the long run. Regards, Arun