Added one more update mirror + slightly improved seeding of the PRNG.
This commit is contained in:
parent
450907dce7
commit
72aea452d9
@ -30,7 +30,7 @@
|
||||
#define VER_LAMEXP_MINOR_LO 6
|
||||
#define VER_LAMEXP_TYPE Beta
|
||||
#define VER_LAMEXP_PATCH 1
|
||||
#define VER_LAMEXP_BUILD 1134
|
||||
#define VER_LAMEXP_BUILD 1136
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Tool versions (minimum expected versions!)
|
||||
|
@ -62,6 +62,7 @@ static const char *update_mirrors_prim[] =
|
||||
"http://lamexp.sourceforge.net/",
|
||||
"http://free.pages.at/borschdfresser/",
|
||||
"http://lordmulder.github.com/LameXP/",
|
||||
"http://lord_mulder.bitbucket.org/",
|
||||
"http://www.tricksoft.de/",
|
||||
NULL
|
||||
};
|
||||
@ -69,8 +70,8 @@ static const char *update_mirrors_prim[] =
|
||||
static const char *update_mirrors_back[] =
|
||||
{
|
||||
"http://mplayer.savedonthe.net/",
|
||||
"http://mulder.dummwiedeutsch.de/",
|
||||
"http://mplayer.somestuff.org/",
|
||||
"http://www.rarewares.org/",
|
||||
"http://lord_mulder.doom9.net/",
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -480,10 +481,14 @@ void UpdateDialog::checkForUpdates(void)
|
||||
mirrorList << QString::fromLatin1(update_mirrors_prim[index]);
|
||||
}
|
||||
|
||||
qsrand(time(NULL));
|
||||
for(int i = 0; i < 4375; i++)
|
||||
qsrand(GetTickCount() ^ ((DWORD)time(NULL)));
|
||||
if(const int len = mirrorList.count())
|
||||
{
|
||||
mirrorList.swap(i % mirrorList.count(), qrand() % mirrorList.count());
|
||||
const int rounds = len * 16;
|
||||
for(int i = 0; i < rounds; i++)
|
||||
{
|
||||
mirrorList.swap(i % len, qrand() % len);
|
||||
}
|
||||
}
|
||||
|
||||
for(int index = 0; update_mirrors_back[index]; index++)
|
||||
|
Loading…
Reference in New Issue
Block a user