From fc99750865129c3abe9c827dd136ab717a7f4601 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 8 Apr 2019 15:08:35 +0200 Subject: 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 --- examples/script/qstetrix/main.cpp | 1 - 1 file changed, 1 deletion(-) 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] } -- cgit v1.2.1