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
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment