Skip to content

Commit

Permalink
Merge pull request rcsoccersim#7 from drallensmith/master
Browse files Browse the repository at this point in the history
Fix use of fixed seed 123 for HFO
  • Loading branch information
mhauskn authored Sep 28, 2017
2 parents b2a8bf1 + aa5483b commit 83c80b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/referee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3155,7 +3155,7 @@ HFORef::playModeChange( PlayMode pm )
{
int seed = irand(RAND_MAX);
std::cout << "HFORef using Random Seed: " << seed << std::endl;
M_rng.seed(123);
M_rng.seed(seed);
}
const Stadium::PlayerCont::const_iterator end = M_stadium.players().end();
for ( Stadium::PlayerCont::const_iterator p = M_stadium.players().begin();
Expand Down

0 comments on commit 83c80b6

Please sign in to comment.