Skip to content

Commit

Permalink
fix #3515 : random start time
Browse files Browse the repository at this point in the history
(cherry-picked from commit 8ed6014)
  • Loading branch information
gfgtdf authored and jyrkive committed Oct 7, 2018
1 parent 46efcf1 commit 647cdea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/saved_game.cpp
Expand Up @@ -134,7 +134,9 @@ void saved_game::set_random_seed()
return;
}

carryover_["random_seed"] = randomness::generator->get_random_int(0, INT_MAX);
std::stringstream stream;
stream << std::setfill('0') << std::setw(8) << std::hex << randomness::generator->get_random_int(0, INT_MAX);
carryover_["random_seed"] = stream.str();
carryover_["random_calls"] = 0;
}

Expand Down

0 comments on commit 647cdea

Please sign in to comment.