generator: use G.k_length var instead of .size()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-08 07:16:19 +01:00
parent b3c1033e6a
commit ee0fb01dc8
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -172,7 +172,7 @@ auto Generator::generate_random_data(uint n) -> std::string {
nu_G_k.clear();
/* clear out the old key and set a new one */
std::memset(G.k, 0x00, G.k.size());
std::memset(G.k, 0x00, G.k_length);
std::memmove(G.k, dst.c_str(), G.k_length);
} catch(std::exception& e) {
fmt::print("{}", e.what());