Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
85529f4e
Commit
85529f4e
authored
Oct 28, 2015
by
Federico Allocati
Browse files
Changed include guard in tools/rand.hpp
parent
f8447113
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/limbo/tools/rand.hpp
View file @
85529f4e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment