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_MINOR_LO 6
|
||||||
#define VER_LAMEXP_TYPE Beta
|
#define VER_LAMEXP_TYPE Beta
|
||||||
#define VER_LAMEXP_PATCH 1
|
#define VER_LAMEXP_PATCH 1
|
||||||
#define VER_LAMEXP_BUILD 1134
|
#define VER_LAMEXP_BUILD 1136
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Tool versions (minimum expected versions!)
|
// Tool versions (minimum expected versions!)
|
||||||
|
@ -62,6 +62,7 @@ static const char *update_mirrors_prim[] =
|
|||||||
"http://lamexp.sourceforge.net/",
|
"http://lamexp.sourceforge.net/",
|
||||||
"http://free.pages.at/borschdfresser/",
|
"http://free.pages.at/borschdfresser/",
|
||||||
"http://lordmulder.github.com/LameXP/",
|
"http://lordmulder.github.com/LameXP/",
|
||||||
|
"http://lord_mulder.bitbucket.org/",
|
||||||
"http://www.tricksoft.de/",
|
"http://www.tricksoft.de/",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@ -69,8 +70,8 @@ static const char *update_mirrors_prim[] =
|
|||||||
static const char *update_mirrors_back[] =
|
static const char *update_mirrors_back[] =
|
||||||
{
|
{
|
||||||
"http://mplayer.savedonthe.net/",
|
"http://mplayer.savedonthe.net/",
|
||||||
"http://mulder.dummwiedeutsch.de/",
|
"http://www.rarewares.org/",
|
||||||
"http://mplayer.somestuff.org/",
|
"http://lord_mulder.doom9.net/",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -473,17 +474,21 @@ void UpdateDialog::checkForUpdates(void)
|
|||||||
|
|
||||||
statusLabel->setText(tr("Checking for new updates online, please wait..."));
|
statusLabel->setText(tr("Checking for new updates online, please wait..."));
|
||||||
m_logFile->append(QStringList() << "" << "----" << "" << "Checking for updates online...");
|
m_logFile->append(QStringList() << "" << "----" << "" << "Checking for updates online...");
|
||||||
|
|
||||||
QStringList mirrorList;
|
QStringList mirrorList;
|
||||||
for(int index = 0; update_mirrors_prim[index]; index++)
|
for(int index = 0; update_mirrors_prim[index]; index++)
|
||||||
{
|
{
|
||||||
mirrorList << QString::fromLatin1(update_mirrors_prim[index]);
|
mirrorList << QString::fromLatin1(update_mirrors_prim[index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
qsrand(time(NULL));
|
qsrand(GetTickCount() ^ ((DWORD)time(NULL)));
|
||||||
for(int i = 0; i < 4375; i++)
|
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++)
|
for(int index = 0; update_mirrors_back[index]; index++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user