From 0e6190e5f7e36785aa5fdf5ebd007fdd17afb886 Mon Sep 17 00:00:00 2001 From: Levon Petrosyan Date: Tue, 13 Apr 2021 21:44:04 +0400 Subject: [PATCH] Review comment applied --- src/liblelantus/challenge_generator_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/liblelantus/challenge_generator_impl.h b/src/liblelantus/challenge_generator_impl.h index 389167ec14..4b2154d0df 100644 --- a/src/liblelantus/challenge_generator_impl.h +++ b/src/liblelantus/challenge_generator_impl.h @@ -62,8 +62,8 @@ class ChallengeGeneratorImpl : public ChallengeGenerator { private: void addSize(uint32_t size) { if (version >= 1) { - std::string s = std::to_string(size); - hash.Write((const unsigned char*)s.c_str(), s.size()); + Scalar s(size); + add(s); } } private: