diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/hmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index 348a453a6..335972003 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -102,7 +102,7 @@ std::string TreeSocket::RandString(unsigned int ilength) if (f >= 0) { - if (read(f, randombuf, ilength) < ilength) + if (read(f, randombuf, ilength) < (int)ilength) ServerInstance->Logs->Log("m_spanningtree", DEFAULT, "Entropy source has gone predictable (did not return enough data)"); close(f); } |