generator: the number of blocks has to be >= 0
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-11-08 09:47:18 +01:00
parent d986b6b482
commit 40ae062657
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ auto Generator::do_crypto(int64_t k, unsigned __int128 ctr) -> string {
return ""; return "";
} }
auto Generator::generate_blocks(int k_blocks) -> string { auto Generator::generate_blocks(unsigned int k_blocks) -> string {
G_state G = get_state(); G_state G = get_state();
assert (G.ctr!=0); assert (G.ctr!=0);
string r = ""; string r = "";

View File

@ -11,7 +11,7 @@ using namespace std;
class Generator { class Generator {
public: public:
void initialize_generator(); void initialize_generator();
auto generate_blocks(int k_blocks) -> string; auto generate_blocks(unsigned int k_blocks) -> string;
private: private:
struct G_state; struct G_state;