mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
use portable QTimer to initialize the rand function.
This commit is contained in:
parent
753be4d2bc
commit
1a20d42424
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ Folder::Folder(const QString &alias, const QString &path, QObject *parent)
|
||||||
_online(false),
|
_online(false),
|
||||||
_enabled(true)
|
_enabled(true)
|
||||||
{
|
{
|
||||||
qsrand(time(0));
|
qsrand(QTime::currentTime().msec());
|
||||||
|
|
||||||
_pollTimer->setSingleShot(true);
|
_pollTimer->setSingleShot(true);
|
||||||
int polltime = DEFAULT_POLL_INTERVAL_SEC - 2000+ (int)( 4000.0*qrand()/(RAND_MAX+1.0));
|
int polltime = DEFAULT_POLL_INTERVAL_SEC - 2000+ (int)( 4000.0*qrand()/(RAND_MAX+1.0));
|
||||||
|
|
Loading…
Reference in a new issue