Commit e95e8f01 authored by Shlomi Fish's avatar Shlomi Fish
Browse files

fix the non-randomised deal problem.

It was always deal #1.
parent e6b2c641
......@@ -407,7 +407,9 @@ void MainWindow::restart()
void MainWindow::startRandom()
{
startNew(QRandomGenerator::global()->generate());
const auto seed = QRandomGenerator::global()->generate();
const int signed_seed = (int)(seed & (~(((quint32)1) << 31)));
startNew(signed_seed);
}
void MainWindow::startNew(int gameNumber)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment