diff --git a/tests/manual/ssh/sftp/sftptest.cpp b/tests/manual/ssh/sftp/sftptest.cpp index 6e93ca7c227..928c53f6e37 100644 --- a/tests/manual/ssh/sftp/sftptest.cpp +++ b/tests/manual/ssh/sftp/sftptest.cpp @@ -33,6 +33,8 @@ #include +#include + using namespace QSsh; SftpTest::SftpTest(const Parameters ¶ms) @@ -128,7 +130,7 @@ void SftpTest::handleChannelInitialized() std::cout << "Creating " << m_parameters.smallFileCount << " files of 1 KB each ..." << std::endl; - qsrand(QDateTime::currentDateTime().toTime_t()); + std::srand(QDateTime::currentDateTime().toSecsSinceEpoch()); for (int i = 0; i < m_parameters.smallFileCount; ++i) { const QString fileName = QLatin1String("sftptestfile") + QString::number(i + 1);