D26201: Port away from KRandom

Shlomi Fish noreply at phabricator.kde.org
Thu Jan 2 14:07:27 GMT 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20200102/985ab9bc/attachment.html>


More information about the kde-games-devel mailing list