summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/random_func.cpp3
-rw-r--r--src/core/random_func.hpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp
index 803250040..b0939229e 100644
--- a/src/core/random_func.cpp
+++ b/src/core/random_func.cpp
@@ -3,10 +3,11 @@
/** @file random_func.cpp */
#include "../stdafx.h"
-#include "../variables.h"
#include "random_func.hpp"
#include "bitmath_func.hpp"
+uint32 _random_seeds[2][2];
+
uint32 InteractiveRandom()
{
const uint32 s = _random_seeds[1][0];
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp
index 607d802a8..b0ea5b2b9 100644
--- a/src/core/random_func.hpp
+++ b/src/core/random_func.hpp
@@ -100,4 +100,6 @@ static inline bool Chance16R(const uint a, const uint b, uint32 &r)
return Chance16I(a, b, r);
}
+extern uint32 _random_seeds[2][2];
+
#endif /* RANDOM_FUNC_HPP */