summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-10-08 06:04:42 +0200
committerJunio C Hamano <gitster@pobox.com>2021-10-08 10:04:56 -0700
commitc90cfc225baaf64af311f7e2953267e4de636205 (patch)
tree8cf850790b14ef3266597bfd296212fa8bc2ebb2 /builtin/commit.c
parentafc72b5d3afa5537d38047c9dffb81b50518e19d (diff)
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>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions