Commit 85529f4e authored by Federico Allocati's avatar Federico Allocati
Browse files

Changed include guard in tools/rand.hpp

parent f8447113
......@@ -34,8 +34,8 @@
//| The fact that you are presently reading this means that you have
//| had knowledge of the CeCILL license and that you accept its terms.
#ifndef LIMBO_RAND_HPP_
#define LIMBO_RAND_HPP_
#ifndef LIMBO_TOOLS_RAND_HPP
#define LIMBO_TOOLS_RAND_HPP
#include <cstdlib>
#include <cmath>
......@@ -53,7 +53,7 @@ namespace limbo {
{
assert(max > 0);
static std::mt19937 twister(std::time(0));
static std::uniform_real_distribution<double> distr(0.0, 1.0);
static std::uniform_real_distribution<double> distr(0.0, max);
return distr(twister);
}
......@@ -113,4 +113,5 @@ namespace limbo {
}
}
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment