mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
changes RandomNumberGenerator::result_type
to be unsigned
This commit is contained in:
parent
9c07718b5f
commit
66d5236ce7
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user