preseed rand so a random image is selected on launch

This commit is contained in:
barrystyle
2019-05-30 17:40:27 +08:00
parent 1431c5cd1a
commit 688431bdba
+4 -1
View File
@@ -28,7 +28,10 @@ NetworkStyle::NetworkStyle(const QString &_appName, const int iconColorHueShift,
appName(_appName),
titleAddText(qApp->translate("SplashScreen", _titleAddText))
{
// seed rand from timer
QTime time = QTime::currentTime();
qsrand((uint)time.msec());
// select a random image on launch
int randomsplash = qrand() % (5 - 1) + 1;
QString selectedimg;
if (randomsplash == 1)