changes RandomNumberGenerator::result_type to be unsigned

This commit is contained in:
Sebastian Grottel 2017-10-13 10:44:52 +02:00
parent 9c07718b5f
commit 66d5236ce7

View File

@ -22,7 +22,7 @@
namespace Catch {
struct RandomNumberGenerator {
typedef std::ptrdiff_t result_type;
typedef std::make_unsigned<std::ptrdiff_t>::type result_type;
result_type operator()( result_type n ) const { return std::rand() % n; }