mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix qrand
This commit is contained in:
parent
13d0c60e59
commit
357604a38d
@ -4,7 +4,6 @@
|
||||
#include <QPrintDialog>
|
||||
#include <QPainter>
|
||||
#include <QWebEnginePage>
|
||||
#include <QRandomGenerator>
|
||||
|
||||
#include "vmainwindow.h"
|
||||
#include "vdirectorytree.h"
|
||||
@ -3473,7 +3472,7 @@ void VMainWindow::kickOffStartUpTimer(const QStringList &p_files)
|
||||
}
|
||||
|
||||
if (g_config->getAllowUserTrack()) {
|
||||
int interval = (30 + QRandomGenerator::global()->generate() % 60) * 1000;
|
||||
int interval = (30 + qrand() % 60) * 1000;
|
||||
QTimer::singleShot(interval, this, SLOT(collectUserStat()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user