generator: use G.k_length var instead of .size()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b3c1033e6a
commit
ee0fb01dc8
|
@ -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());
|
||||
|
|
Reference in New Issue