summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_password_hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp
index 926ba5632..37effc79e 100644
--- a/src/modules/m_password_hash.cpp
+++ b/src/modules/m_password_hash.cpp
@@ -43,7 +43,7 @@ class CommandMkpasswd : public Command
user->WriteNotice("Unknown hash type");
return;
}
- std::string salt = ServerInstance->GenRandomStr(6, false);
+ std::string salt = ServerInstance->GenRandomStr(hp->out_size, false);
std::string target = hp->hmac(salt, stuff);
std::string str = BinToBase64(salt) + "$" + BinToBase64(target, NULL, 0);