summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-15 21:44:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-15 21:44:46 +0000
commit2f02a16a12f448d9bdfe15b4f0a9d1c3299f66c8 (patch)
treebb0fe8216a0f6215c39dd0e319060b2651a6f8e9 /src
parentdab5de9885a6ccf5c33ed663054523f64a9aeb41 (diff)
Removal of ifdef
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7728 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index d9b3671d2..292ca00ac 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -1154,7 +1154,6 @@ void DNS::CleanResolvers(Module* module)
/** Generate pseudo-random number */
unsigned long DNS::PRNG()
{
-#ifndef WIN32
unsigned long val = 0;
timeval n;
serverstats* s = ServerInstance->stats;
@@ -1163,13 +1162,5 @@ unsigned long DNS::PRNG()
val = val + s->statsCollisions ^ s->statsDnsGood - s->statsDnsBad;
val += (s->statsConnects ^ (unsigned long)s->statsSent ^ (unsigned long)s->statsRecv) - ServerInstance->Config->ports.size();
return val;
-#else
- unsigned long val = 0;
- serverstats* s = ServerInstance->stats;
- val = (time(NULL) ^ GetCurrentProcessId() ^ GetCurrentThreadId() ^ (this->currid++)) ^ s->statsAccept + time(NULL);
- val = val + s->statsCollisions ^ s->statsDnsGood - s->statsDnsBad;
- val += (s->statsConnects ^ (unsigned long)s->statsSent ^ (unsigned long)s->statsRecv);
- return val;
-#endif
}