Skip to content

Commit 72c8196

Browse files
committed
Revert rng
1 parent fb09ca0 commit 72c8196

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cp-algo/random/rng.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
#include <chrono>
44
#include <random>
55
namespace cp_algo::random {
6-
std::mt19937_64 rng(
7-
std::chrono::steady_clock::now().time_since_epoch().count()
8-
);
6+
uint64_t rng() {
7+
static std::mt19937_64 rng(
8+
std::chrono::steady_clock::now().time_since_epoch().count()
9+
);
10+
return rng();
11+
}
912
}
1013
#endif // CP_ALGO_RANDOM_RNG_HPP

0 commit comments

Comments
 (0)