catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
`RandomNumberGenerator::result_type` should be unsigned (#1050)
- Commit
296955c437f29addaf6c5cbfeb47a606b96a5ab1- Author
- Sebastian Grottel ·
- Committer
- Martin Hořeňovský
- Parents
664cbf702c5c
Changes
include/internal/catch_test_case_registry_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp index 316c6c2c..879884d6 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -22,7 +22,7 @@ namespace Catch { struct RandomNumberGenerator { - typedef std::ptrdiff_t result_type; + typedef unsigned int result_type; result_type operator()( result_type n ) const { return std::rand() % n; }