diff --git a/autotests/unit/lib/filemonitortest.cpp b/autotests/unit/lib/filemonitortest.cpp --- a/autotests/unit/lib/filemonitortest.cpp +++ b/autotests/unit/lib/filemonitortest.cpp @@ -25,6 +25,7 @@ #include #include +#include using namespace Baloo; @@ -191,9 +192,10 @@ // assuming you want random strings of 12 characters QString randomString; + auto *generator = QRandomGenerator::global(); for(int i=0; ibounded(possibleCharacters.length()); QChar nextChar = possibleCharacters.at(index); randomString.append(nextChar); }