Commit 59bc2e50 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix mistake in KRandomSequence -> QRandomGenerator porting

In KRandomSequence seed 0 means "randomize the seed", while in
QRandomGenerator it's just a seed like the others, so give it an actual
random seed
parent 040045ca
......@@ -63,7 +63,7 @@ MyMainView::MyMainView(QWidget *parent)
{
int i,p;
setMinimumSize(600,400);
random.seed(0);
random.seed(QRandomGenerator::global()->generate());
QPixmap backgr(QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral(MV_BACKGROUND)));
field.setBackgroundBrush(QBrush(backgr));
......
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