Try to use truly random data to initialize the random number generator

Fixed: crash when closing the PasswordDlg by clicking on the x
Fixed: -cfg parameter not working
Fixed: does not compile for Windows
Fixed some compiler warnings

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@176 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-03-08 14:18:32 +00:00
parent e9a85f91fc
commit b8f59f9f04
12 changed files with 98 additions and 85 deletions

View File

@@ -31,7 +31,7 @@ bool Import_PwManager::importDatabase(QWidget* GuiParent, IDatabase* db){
char* buffer=NULL;
int offset=0;
int len=0;
if(len=file->size()){
if((len=file->size())){
buffer=new char[len];
}
else {