generator: the number of blocks has to be >= 0
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
d986b6b482
commit
40ae062657
|
@ -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 = "";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in New Issue