We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd9946e commit f936e4fCopy full SHA for f936e4f
src/engine/global.h
@@ -26,7 +26,8 @@ inline T randint(T start, T end)
26
start = end;
27
end = tmp;
28
}
29
- std::default_random_engine generator;
+ std::random_device d;
30
+ std::default_random_engine generator(d());
31
if constexpr (std::is_integral<T>()) {
32
std::uniform_int_distribution<T> distribution(start, end);
33
return distribution(generator);
0 commit comments