summaryrefslogtreecommitdiff
path: root/src/common/Cryptography/SessionKeyGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Cryptography/SessionKeyGenerator.h')
-rw-r--r--src/common/Cryptography/SessionKeyGenerator.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/common/Cryptography/SessionKeyGenerator.h b/src/common/Cryptography/SessionKeyGenerator.h
index b66f1014a0..43dca3f235 100644
--- a/src/common/Cryptography/SessionKeyGenerator.h
+++ b/src/common/Cryptography/SessionKeyGenerator.h
@@ -15,17 +15,18 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "CryptoHash.h"
-#include <cstring>
-
#ifndef AZEROTHCORE_SESSIONKEYGENERATOR_HPP
#define AZEROTHCORE_SESSIONKEYGENERATOR_HPP
+#include "CryptoHash.h"
+#include <cstring>
+
template <typename Hash>
class SessionKeyGenerator
{
public:
- template <typename C> SessionKeyGenerator(C const& buf) :
+ template <typename C>
+ SessionKeyGenerator(C const& buf) :
o0it(o0.begin())
{
uint8 const* data = std::data(buf);
@@ -52,9 +53,9 @@ public:
}
private:
- typename Hash::Digest o0 = { };
- typename Hash::Digest o1 = { };
- typename Hash::Digest o2 = { };
+ typename Hash::Digest o0{};
+ typename Hash::Digest o1{};
+ typename Hash::Digest o2{};
typename Hash::Digest::const_iterator o0it;
};