Skip to content

Commit

Permalink
fix a problem found by vlad
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmouret committed Apr 5, 2018
1 parent b07d945 commit aadcb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sferes/misc/rand.hpp
Expand Up @@ -80,7 +80,7 @@ namespace sferes {
static thread_local generator_t rgen = make_rgen();;
// uniform_int is in [a,b], not [a,b)...
std::uniform_int_distribution<size_t> dist(min, max - 1);
size_t v = dist(rgen);
T v = dist(rgen);
assert(v >= min);
assert(v < max);
return v;
Expand Down

0 comments on commit aadcb03

Please sign in to comment.