[education/rkward] rkward: Remove obsolete workaround based on deprecated qsrand

Thomas Friedrichsmeier null at kde.org
Mon May 23 20:40:02 BST 2022


Git commit dd6f0e28ee4995faf21046c12ab452ead46800cd by Thomas Friedrichsmeier.
Committed on 23/05/2022 at 19:20.
Pushed by tfry into branch 'master'.

Remove obsolete workaround based on deprecated qsrand

M  +0    -1    rkward/main.cpp
M  +0    -1    rkward/rbackend/rkfrontendtransmitter.cpp

https://invent.kde.org/education/rkward/commit/dd6f0e28ee4995faf21046c12ab452ead46800cd

diff --git a/rkward/main.cpp b/rkward/main.cpp
index fea2991b..fb6be476 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -386,7 +386,6 @@ int main (int argc, char *argv[]) {
 	}
 	RKSessionVars::r_binary = r_exe;
 
-	qsrand (QTime::currentTime ().msec ()); // Workaround for some versions of kcoreaddons (5.21.0 through at least 5.34.0). See https://phabricator.kde.org/D5966
 	if (app.isSessionRestored ()) {
 		RESTORE(RKWardMainWindow);	// well, whatever this is supposed to do -> TODO
 	} else {
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index daadc64c..bb7599d3 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -67,7 +67,6 @@ void RKFrontendTransmitter::run () {
 	RK_TRACE (RBACKEND);
 
 	// start server
-	qsrand (QTime::currentTime ().msec ()); // Workaround for some versions of kcoreaddons (5.21.0 through at least 5.34.0). See https://phabricator.kde.org/D5966
 	server = new QLocalServer (this);
 	// we add a bit of randomness to the servername, as in general the servername must be unique
 	// there could be conflicts with concurrent or with previous crashed rkward sessions.



More information about the rkward-tracker mailing list