groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/03: contrib/hdtbl/examples/*.roff: Seed RNG.


From: G. Branden Robinson
Subject: [groff] 01/03: contrib/hdtbl/examples/*.roff: Seed RNG.
Date: Sun, 19 Nov 2017 22:56:02 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit da6ac443f21ef09d90b40d2e8215955c916f396a
Author: G. Branden Robinson <address@hidden>
Date:   Sun Nov 19 22:19:52 2017 -0500

    contrib/hdtbl/examples/*.roff: Seed RNG.
    
    Support reproducible builds by seeding hdtbl's random number generator
    (in contrib/hdtbl/examples/common.roff).
    
    When A/Bing roff documents after a build to see what I broke with my
    changes, I always have to ignore the numerous color changes caused by
    contrib/hdtbl/examples/common.roff seeding its random number generator
    with the current date/time and process ID.
    
    Zeroes turned out to be bad seeds; the tables didn't have much in the
    way of color gradients.
    
    Fix issue https://savannah.gnu.org/bugs/?52462.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 ChangeLog                                       | 13 +++++++++++++
 contrib/hdtbl/examples/col_rowspan_colors.roff  |  2 ++
 contrib/hdtbl/examples/color_boxes.roff         |  2 ++
 contrib/hdtbl/examples/color_nested_tables.roff |  2 ++
 contrib/hdtbl/examples/color_table_cells.roff   |  2 ++
 5 files changed, 21 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index e64d8ad..545e52d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2017-11-19  G. Branden Robinson <address@hidden>
+
+       contrib/hdtbl/examples/*.roff: Seed RNG.
+
+       * contrib/hdtbl/examples/col_rowspan_colors.roff:
+       * contrib/hdtbl/examples/color_boxes.roff:
+       * contrib/hdtbl/examples/color_nested_tables.roff:
+       * contrib/hdtbl/examples/color_table_cells.roff:
+       Support reproducible builds by seeding hdtbl's random number
+       generator (in contrib/hdtbl/examples/common.roff).
+
+       Fix issue https://savannah.gnu.org/bugs/?52462.
+
 2017-11-18  G. Branden Robinson <address@hidden>
 
        tmac/groff_mdoc.7.man: Use unstripped symbol names.
diff --git a/contrib/hdtbl/examples/col_rowspan_colors.roff 
b/contrib/hdtbl/examples/col_rowspan_colors.roff
index 83589bb..c41905d 100644
--- a/contrib/hdtbl/examples/col_rowspan_colors.roff
+++ b/contrib/hdtbl/examples/col_rowspan_colors.roff
@@ -30,6 +30,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .
 .de color#
 .nr # +1
+.\" Seed the random number generator for reproducible builds.
+.random-seed 131545532 19201711
 .random#
 .defcolor c\\n# rgb \\*[#random]
 ..
diff --git a/contrib/hdtbl/examples/color_boxes.roff 
b/contrib/hdtbl/examples/color_boxes.roff
index 06a9028..a5073ef 100644
--- a/contrib/hdtbl/examples/color_boxes.roff
+++ b/contrib/hdtbl/examples/color_boxes.roff
@@ -26,6 +26,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .
 .so \*[sopath]examples/common.roff
 .
+.\" Seed the random number generator for reproducible builds.
+.random-seed 131545532 19201711
 .time start
 .
 .H Horizontal Rules and Boxes .br with Randomly Colored Border and Background
diff --git a/contrib/hdtbl/examples/color_nested_tables.roff 
b/contrib/hdtbl/examples/color_nested_tables.roff
index 19e0bb1..9c9b722 100644
--- a/contrib/hdtbl/examples/color_nested_tables.roff
+++ b/contrib/hdtbl/examples/color_nested_tables.roff
@@ -29,6 +29,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .so \*[sopath]examples/common.roff
 .
 .
+.\" Seed the random number generator for reproducible builds.
+.random-seed 131545532 19201711
 .time start
 .
 .PN 15 Text before first table.
diff --git a/contrib/hdtbl/examples/color_table_cells.roff 
b/contrib/hdtbl/examples/color_table_cells.roff
index 8219eb7..e4cb1e1 100644
--- a/contrib/hdtbl/examples/color_table_cells.roff
+++ b/contrib/hdtbl/examples/color_table_cells.roff
@@ -28,6 +28,8 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .
 .so \*[sopath]examples/common.roff
 .
+.\" Seed the random number generator for reproducible builds.
+.random-seed 131545532 19201711
 .time start
 .
 .H Horizontal Rules and Randomly Colored Table Cells



reply via email to

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