diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-04-08 15:08:35 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2019-04-09 09:12:33 +0000 |
commit | fc99750865129c3abe9c827dd136ab717a7f4601 (patch) | |
tree | 8539160af867008fa48f35deae8a308a7cdeaea7 /examples | |
parent | 8355a7d1af3d2658a7409b0b0324b6863c9fdf2b (diff) | |
download | qtscript-fc99750865129c3abe9c827dd136ab717a7f4601.tar.gz |
Remove a qsrand() call that's now redundant
The Tetris example uses Math.random(), which is now implemented using
QRandomGenerator::global(), making the call to qsrand() pointless.
Change-Id: I5cce3271076b8202a20a5d944b037e92f487f17f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/script/qstetrix/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/script/qstetrix/main.cpp b/examples/script/qstetrix/main.cpp index 2d71048..43f32b4 100644 --- a/examples/script/qstetrix/main.cpp +++ b/examples/script/qstetrix/main.cpp @@ -148,7 +148,6 @@ int main(int argc, char *argv[]) ui->resize(550, 370); ui->show(); - qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); return app.exec(); //! [4] } |