generator: use a proper uin64_t literal

This commit is contained in:
surtur 2021-12-11 01:13:01 +01:00
parent b9676226c5
commit 25cbddf41f
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -207,7 +207,7 @@ auto Generator::generate_random_data(uint n) -> std::string {
fmt::print("rr (output from generate_blocks): {}\n", rr);
// since we're truncating hex, we need to get twice more characters
r = rr.substr(0,n*2);
r = rr.substr(0,n*0x02ul);
rr.clear();
} catch(std::exception& e) {
fmt::print("{}", e.what());