aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-01-31 22:12:10 +0000
committerBertrand <bertrand.horel@gmail.com>2016-01-31 22:12:10 +0000
commitcc74c6a2039b76c7797a78fdeb5d5cd7654b4507 (patch)
tree1a486569803d477d22388742a6852b3e341c7114
parentfd4237e52d643063f183564a9f5b0c6bdf0bc95a (diff)
downloadprojet_C++-cc74c6a2039b76c7797a78fdeb5d5cd7654b4507.tar.gz
réparation des includes
-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);