Skip to content

Commit 628f062

Browse files
committed
Update rng.hpp
1 parent 46df430 commit 628f062

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cp-algo/random/rng.hpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
#include <chrono>
44
#include <random>
55
namespace cp_algo::random {
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-
}
6+
std::mt19937_64 rng(
7+
std::chrono::steady_clock::now().time_since_epoch().count()
8+
);
129
}
1310
#endif // CP_ALGO_RANDOM_RNG_HPP

0 commit comments

Comments
 (0)