From 3f613ac43cd8d2e1b9fc3c29186d3e847c6af125 Mon Sep 17 00:00:00 2001
From: Jean-Marco Alameddine <jean-marco.alameddine@tu-dortmund.de>
Date: Tue, 22 Nov 2022 12:34:52 +0100
Subject: [PATCH] fix DummyRNG for clang builds

---
 tests/framework/testProcessSequence.cpp | 4 ++--
 tests/media/testNuclearComposition.cpp  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/framework/testProcessSequence.cpp b/tests/framework/testProcessSequence.cpp
index 8bcdd56e2..d51b341b0 100644
--- a/tests/framework/testProcessSequence.cpp
+++ b/tests/framework/testProcessSequence.cpp
@@ -37,8 +37,8 @@ using namespace corsika;
 using namespace std;
 
 struct DummyRNG {
-  int max() const { return 10; }
-  int min() const { return 0; }
+  static constexpr int max() { return 10; }
+  static constexpr int min() { return 0; }
   double operator()() const { return 0.5; }
 };
 
diff --git a/tests/media/testNuclearComposition.cpp b/tests/media/testNuclearComposition.cpp
index 79b019dc9..acf9c8e2f 100644
--- a/tests/media/testNuclearComposition.cpp
+++ b/tests/media/testNuclearComposition.cpp
@@ -19,8 +19,8 @@ struct DummyRNG {
   double v_;
   DummyRNG(double v)
       : v_(v) {}
-  int max() const { return 10; }
-  int min() const { return 0; }
+  static constexpr int max() { return 10; }
+  static constexpr int min() { return 0; }
   double operator()() const { return v_; }
 };
 
-- 
GitLab