Skip to content
Snippets Groups Projects
Commit 78482c63 authored by Christophe Guillon's avatar Christophe Guillon
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 b9f2c952
No related branches found
No related tags found
No related merge requests found
Pipeline #50601 passed
This commit is part of merge request !166. Comments created here will be created in the context of that merge request.
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