cjwatson pushed a commit to branch master
in repository groff.

commit 3b4b85baa3e2a252a6480b3cfb9cf984eff1b71a
Author: Colin Watson <cjwat...@debian.org>
Date:   Sun Mar 11 22:49:52 2018 +0000

    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.
---
 ChangeLog                          | 10 ++++++++++
 contrib/hdtbl/examples/common.roff |  6 +++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b0a7a38..0067037 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-03-11  Colin Watson  <cjwat...@debian.org>
+
+       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-09  Deri James  <d...@chuzzlewit.myzen.co.uk>
 
        PDF must not open in presentation mode.
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
 .

_______________________________________________
Groff-commit mailing list
Groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to