Skip to content

Commit

Permalink
Merge pull request #956 from mattrek:random
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 483420902
Change-Id: I9ffc0526278c2909446f987f779e18280564c923
  • Loading branch information
lanctot committed Oct 24, 2022
2 parents 8e2c374 + 7d2c0cc commit b4ca9d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion open_spiel/algorithms/alpha_zero_torch/alpha_zero.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void actor(const open_spiel::Game& game, const AlphaZeroConfig& config, int num,
} else {
logger.reset(new NoopLogger());
}
std::mt19937 rng;
std::mt19937 rng(absl::ToUnixNanos(absl::Now()));
absl::uniform_real_distribution<double> dist(0.0, 1.0);
std::vector<std::unique_ptr<MCTSBot>> bots;
bots.reserve(2);
Expand Down
2 changes: 1 addition & 1 deletion open_spiel/examples/alpha_zero_torch_game_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ InitBot(std::string type, const open_spiel::Game &game,
absl::GetFlag(FLAGS_max_simulations),
absl::GetFlag(FLAGS_max_memory_mb), absl::GetFlag(FLAGS_solve), Seed(),
absl::GetFlag(FLAGS_verbose),
open_spiel::algorithms::ChildSelectionPolicy::UCT, 0, 0,
open_spiel::algorithms::ChildSelectionPolicy::PUCT, 0, 0,
/*dont_return_chance_node=*/true);
}
if (type == "human") {
Expand Down

0 comments on commit b4ca9d6

Please sign in to comment.