From 2af60e2d59c508c182a10ebc0de31b035b73cae8 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sat, 11 Aug 2018 11:59:04 +0200 Subject: Not using random distribution in demonstration plot Different implementations of AWK may use different random number generators, so even setting the seed will not ensure a reproducible result. Because of this, the random plot may be different when the pipeline runs on different systems and this can confuse early users (its contrary to the exact reproducibility that is the whole purpose of this pipeline). The plot is just a simple X^2 plot, showing the squared value of the X axis on the Y axis. It is very simple, but atleast it will be identical on all systems. Also, there may be too many complicated things in the pipeline already for an early user, and its just a demonstration, so the easier/simpler, the better. --- reproduce/src/make/delete-me.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'reproduce/src/make') diff --git a/reproduce/src/make/delete-me.mk b/reproduce/src/make/delete-me.mk index a93c2d0..de72873 100644 --- a/reproduce/src/make/delete-me.mk +++ b/reproduce/src/make/delete-me.mk @@ -37,8 +37,7 @@ $(dm): $(pconfdir)/delete-me-num.mk | $(dmdir) rm -f $(tikzdir)/delete-me.pdf # Generate the table of random values. - awk 'BEGIN { for (i = 1; i <= $(delete-me-num); i++) \ - print i, rand(); }' > $@ + awk 'BEGIN {for(i=1;i<=$(delete-me-num);i+=0.5) print i, i*i; }' > $@ -- cgit v1.2.1