D26201: Port away from KRandom

Shlomi Fish <[email protected]>
Newsgroups gmane.comp.kde.devel.games
Message-ID <[email protected]>
shlomif requested changes to this revision.
shlomif added a comment.
This revision now requires changes to proceed.


  Here is a fixed startRandom():
  
    void MainWindow::startRandom()
    {
        const auto seed = QRandomGenerator::global()->generate();
        const int signed_seed = (int)(seed & (~(((quint32)1) << 31)));
        startNew(signed_seed);
    }

REPOSITORY
  R410 KPatience

REVISION DETAIL
  https://phabricator.kde.org/D26201

To: nicolasfella, #kde_games, shlomif
Cc: shlomif, kde-games-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.