Skip to content
Snippets Groups Projects
Commit 0a473686 authored by Christophe Guillon's avatar Christophe Guillon Committed by Cyril Moineau
Browse files

[UnitTest] Make unit tests deterministic with fixed seed

Use the getSeed() method provided by Catch to initialize the
random number generator instead of using the default random device.

This allows to make the tests deterministic when --rng-seed <seed>
option is passed.
Also this allows to report a test failure by specifying the
seed as reported in the test output, which can then be reproduced
with --rng-seed <reported_seed>.
parent aa12de58
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!166[UnitTest] Make unit tests deterministic with fixed seed
Pipeline #50624 passed