test-mergesort: use repeatable random numbers
commitc90cfc225baaf64af311f7e2953267e4de636205
authorRené Scharfe <l.s.r@web.de>
Fri, 8 Oct 2021 04:04:42 +0000 (8 06:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 17:04:56 +0000 (8 10:04 -0700)
tree8cf850790b14ef3266597bfd296212fa8bc2ebb2
parentafc72b5d3afa5537d38047c9dffb81b50518e19d
test-mergesort: use repeatable random numbers

Use MINSTD to generate pseudo-random numbers consistently instead of
using rand(3), whose output can vary from system to system, and reset
its seed before filling in the test values.  This gives repeatable
results across versions and systems, which simplifies sharing and
comparing of results between developers.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-mergesort.c