Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0ef004
)
Random number generation for account directories wasn't working properly.
author
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 3 Jul 2016 22:14:40 +0000
(23:14 +0100)
committer
Steve Brokenshire
<sbrokenshire@xestia.co.uk>
Sun, 3 Jul 2016 22:14:40 +0000
(23:14 +0100)
source/frmNewAccount.cpp
patch
|
blob
|
history
diff --git
a/source/frmNewAccount.cpp
b/source/frmNewAccount.cpp
index
36a1f71
..
8b2a879
100644
(file)
--- a/
source/frmNewAccount.cpp
+++ b/
source/frmNewAccount.cpp
@@
-476,7
+476,10
@@
void frmNewAccount::ProcessNext( wxCommandEvent& event )
wxString XestiaABDirectory;
wxString AccountSettingsFile;
//wxFile ASFile;
- wxString RandomNumberSuffix = wxString::Format(wxT("%i"), rand() % 32767);
+
+ srand(time(0));
+ int RandomNumber = rand() % 32767;
+ wxString RandomNumberSuffix = wxString::Format(wxT("%i"), RandomNumber);
bool DirectoryCreated = FALSE;
#if defined(__HAIKU__)
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy