Use boost::random for random number generation.

This commit is contained in:
lotodore
2011-10-11 15:15:22 +00:00
parent 0d9bf08934
commit 32843b2100
9 changed files with 72 additions and 42 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ ServerGame::InternalStartGame()
startData.numberOfPlayers = (int)playerData.size();
int tmpDealerPos = 0;
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
Tools::GetRand(0, startData.numberOfPlayers-1, 1, &tmpDealerPos);
// The Player Id is not continuous. Therefore, the start dealer position
// needs to be converted to a player Id, and cannot be directly generated
// as player Id.