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: