diff --git a/ext/libstrawberry-common/core/workerpool.h b/ext/libstrawberry-common/core/workerpool.h index 00f78ff4..7149cf93 100644 --- a/ext/libstrawberry-common/core/workerpool.h +++ b/ext/libstrawberry-common/core/workerpool.h @@ -279,9 +279,9 @@ void WorkerPool::StartOneWorker(Worker *worker) { // Create a server, find an unused name and start listening forever { #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) - const qint32 unique_number = QRandomGenerator::global()->bounded(static_cast(quint64(this) & 0xFFFFFFFF)); + const quint32 unique_number = QRandomGenerator::global()->bounded(static_cast(quint64(this) & 0xFFFFFFFF)); #else - const qint32 unique_number = qrand() ^ (static_cast(quint64(this) & 0xFFFFFFFF)); + const quint32 unique_number = qrand() ^ (static_cast(quint64(this) & 0xFFFFFFFF)); #endif const QString name = QString("%1_%2").arg(local_server_name_).arg(unique_number);