generator: add is_seeded method
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
b55ca33e24
commit
2a67a37cbe
|
@ -19,6 +19,10 @@ public:
|
||||||
/* n is the number of random bytes to generate */
|
/* n is the number of random bytes to generate */
|
||||||
auto generate_random_data(uint n) -> std::string;
|
auto generate_random_data(uint n) -> std::string;
|
||||||
|
|
||||||
|
auto is_seeded() const -> bool {
|
||||||
|
return !(this->G.ctr == 0x00);
|
||||||
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct G_state {
|
struct G_state {
|
||||||
// 32*8
|
// 32*8
|
||||||
|
|
Reference in New Issue