mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-17 07:22:01 -08:00
RNG: added additional checks (which forced an interface redesign), updated comments
This commit is contained in:
@@ -45,7 +45,7 @@ void Server_CardZone::shuffle()
|
||||
{
|
||||
QList<Server_Card *> temp;
|
||||
for (int i = cards.size(); i; i--)
|
||||
temp.append(cards.takeAt(rng->getNumber(0, i - 1)));
|
||||
temp.append(cards.takeAt(rng->rand(0, i - 1)));
|
||||
cards = temp;
|
||||
|
||||
playersWithWritePermission.clear();
|
||||
|
||||
Reference in New Issue
Block a user