From 98dc7efddd23efc43cc7804a0e48115ef318dbeb Mon Sep 17 00:00:00 2001 From: Illia Polishchuk Date: Wed, 5 Jul 2023 11:40:07 +0200 Subject: [PATCH] Fix compile error with latest libc++ on MacOS static_assert(__libcpp_random_is_valid_urng<_URNG>::value, ""); --- test/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/catch.hpp b/test/catch.hpp index da494ea..8db95cf 100644 --- a/test/catch.hpp +++ b/test/catch.hpp @@ -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; }