Skip to content

Commit

Permalink
CMake: do not generate seeds containing 0
Browse files Browse the repository at this point in the history
Catch2 does not support RNG seeds that start with 0, the simplest
solution is to avoid generating seeds that contain 0 altogether.
  • Loading branch information
Morwenn committed Jan 17, 2024
1 parent dd31776 commit c7ea665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ endif()
include(CTest)
include(Catch)

string(RANDOM LENGTH 5 ALPHABET 0123456789 RNG_SEED)
string(RANDOM LENGTH 5 ALPHABET 123456789 RNG_SEED)
catch_discover_tests(cxx_98_tests EXTRA_ARGS --rng-seed ${RNG_SEED})
catch_discover_tests(cxx_11_tests EXTRA_ARGS --rng-seed ${RNG_SEED})
catch_discover_tests(cxx_17_tests EXTRA_ARGS --rng-seed ${RNG_SEED})
Expand Down

0 comments on commit c7ea665

Please sign in to comment.