diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2017-11-19 22:19:52 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2017-11-19 22:26:45 -0500 |
commit | da6ac443f21ef09d90b40d2e8215955c916f396a (patch) | |
tree | 35e8817f6bbd88aaa43eece838dedd9b6f5bc076 | |
parent | c1532377d70bd0d73c94dd99b449f6da64e34423 (diff) | |
download | groff-git-da6ac443f21ef09d90b40d2e8215955c916f396a.tar.gz |
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 <g.branden.robinson@gmail.com>
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | contrib/hdtbl/examples/col_rowspan_colors.roff | 2 | ||||
-rw-r--r-- | contrib/hdtbl/examples/color_boxes.roff | 2 | ||||
-rw-r--r-- | contrib/hdtbl/examples/color_nested_tables.roff | 2 | ||||
-rw-r--r-- | contrib/hdtbl/examples/color_table_cells.roff | 2 |
5 files changed, 21 insertions, 0 deletions
@@ -1,3 +1,16 @@ +2017-11-19 G. Branden Robinson <g.branden.robinson@gmail.com> + + 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 <g.branden.robinson@gmail.com> 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 83589bbd5..c41905d00 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 06a902825..a5073efe3 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 19e0bb15a..9c9b722df 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 8219eb714..e4cb1e11b 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 |