summaryrefslogtreecommitdiff
path: root/include/internal/catch_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/internal/catch_context.cpp')
-rw-r--r--include/internal/catch_context.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/catch_context.cpp b/include/internal/catch_context.cpp
index 52fca302..e444a6b3 100644
--- a/include/internal/catch_context.cpp
+++ b/include/internal/catch_context.cpp
@@ -7,6 +7,7 @@
*/
#include "catch_context.h"
#include "catch_common.h"
+#include "catch_random_number_generator.h"
namespace Catch {
@@ -59,4 +60,11 @@ namespace Catch {
IContext::~IContext() = default;
IMutableContext::~IMutableContext() = default;
Context::~Context() = default;
+
+
+ SimplePcg32& rng() {
+ static SimplePcg32 s_rng;
+ return s_rng;
+ }
+
}