groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] [PATCH] Remove unnecessary randomness from example output


From: Colin Watson
Subject: [groff] [PATCH] Remove unnecessary randomness from example output
Date: Mon, 5 Mar 2018 12:05:05 +0000
User-agent: NeoMutt/20170113 (1.7.2)

The hdtbl examples don't need good randomness, as they're only
example output; removing the process ID from consideration allows
better integration with reproducible builds.

* contrib/hdtbl/examples/common.roff (random-s1): Remove process ID.
---
 ChangeLog                          | 10 ++++++++++
 contrib/hdtbl/examples/common.roff |  6 +++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 25b6629..af6de40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-03-05  Colin Watson  <address@hidden>
+
+       Remove unnecessary randomness from example output.
+
+       The hdtbl examples don't need good randomness, as they're only
+       example output; removing the process ID from consideration allows
+       better integration with reproducible builds.
+
+       * contrib/hdtbl/examples/common.roff (random-s1): Remove process ID.
+
 2018-03-02  Werner LEMBERG  <address@hidden>
 
        Hyphenation exceptions in pattern files now obey `.hy' (#53196).
diff --git a/contrib/hdtbl/examples/common.roff 
b/contrib/hdtbl/examples/common.roff
index e112be8..7357918 100644
--- a/contrib/hdtbl/examples/common.roff
+++ b/contrib/hdtbl/examples/common.roff
@@ -234,7 +234,11 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .af mo 00
 .af dy 00
 .
-.ds random-s1 \n[minutes]\n[seconds]\n[$$]\n[hours]\"
+.\" Since this just generates example output, we don't need good randomness;
+.\" basing this purely on the time and not on the process ID allows better
+.\" integration with reproducible builds.
+.\" .ds random-s1 \n[minutes]\n[seconds]\n[$$]\n[hours]\"
+.ds random-s1 \n[minutes]\n[seconds]\n[hours]\"
 .\" prevent overflow
 .substring random-s1 0 8
 .
-- 
2.7.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]