generator: add is_seeded method
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-12-12 18:40:29 +01:00
parent b55ca33e24
commit 2a67a37cbe
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -19,6 +19,10 @@ public:
/* n is the number of random bytes to generate */
auto generate_random_data(uint n) -> std::string;
auto is_seeded() const -> bool {
return !(this->G.ctr == 0x00);
};
private:
struct G_state {
// 32*8