1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-22 03:07:20 +01:00

* FWBSettings.cpp (FWBSettings::init): fixed #1501 call qsrand(seed)

to seed random generator before generating new UUID
This commit is contained in:
Vadim Kurland 2010-06-08 00:02:19 +00:00
parent e6d0a5826e
commit 6352889c72
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 2960
#define BUILD_NUM 2961

View File

@ -1,5 +1,8 @@
2010-06-07 Vadim Kurland <vadim@vk.crocodile.org>
* FWBSettings.cpp (FWBSettings::init): fixed #1501 call qsrand(seed)
to seed random generator before generating new UUID
* TransferDevice.h (fwtransfer): fixed #1490 compile problem with
Qt 4.7

View File

@ -47,6 +47,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#ifdef _WIN32
# include <direct.h>
@ -153,6 +154,7 @@ void FWBSettings::init()
uuid_settings.setValue(appGUID, value(appGUID).toString());
} else
{
qsrand(time(NULL));
uuid_settings.setValue(appGUID, QUuid::createUuid().toString() );
}
}