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:
parent
e6d0a5826e
commit
6352889c72
@ -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
|
||||
|
||||
|
||||
@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user