aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--var_alea.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/var_alea.hpp b/var_alea.hpp
index de37c1d..2d1e8a6 100644
--- a/var_alea.hpp
+++ b/var_alea.hpp
@@ -1,7 +1,11 @@
#ifndef VAR_ALEA_HPP
#define VAR_ALEA_HPP
#include <cmath>
-#include "mt19937.h"
+extern "C" {
+ #include "mt19937.h"
+}
+#include <ctime>
+
void init_alea(unsigned seed = static_cast<unsigned>(std::time(0))) {
init_genrand(seed);