Skip to content

Commit

Permalink
Fix compile error with latest libc++ on MacOS
Browse files Browse the repository at this point in the history
static_assert(__libcpp_random_is_valid_urng<_URNG>::value, "");
  • Loading branch information
ilqvya committed Jul 5, 2023
1 parent 407e954 commit 98dc7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7118,7 +7118,7 @@ namespace Catch {
namespace Catch {

struct RandomNumberGenerator {
typedef std::ptrdiff_t result_type;
typedef std::uint64_t result_type;

result_type operator()( result_type n ) const { return std::rand() % n; }

Expand Down

0 comments on commit 98dc7ef

Please sign in to comment.