Fixed crash and added error message about seed_hash field.

This commit is contained in:
XMRig 2019-08-05 17:48:12 +07:00
parent 044fbd7e82
commit 3543abcc3c
3 changed files with 14 additions and 3 deletions

View file

@ -51,6 +51,7 @@ public:
inline bool isJIT() const { return m_flags & 8; }
inline const uint8_t *seed() const { return m_seed; }
inline randomx_cache *get() const { return m_cache; }
inline uint64_t initCount() const { return m_initCount; }
bool init(const uint8_t *seed);
@ -61,6 +62,7 @@ private:
int m_flags = 0;
randomx_cache *m_cache = nullptr;
uint64_t m_initCount = 0;
uint8_t m_seed[32];
};