Optimized RandomX initialization and switching.
This commit is contained in:
parent
ab0d3b8919
commit
84ff8af4bd
9 changed files with 156 additions and 157 deletions
|
@ -53,11 +53,12 @@ public:
|
|||
inline randomx_cache *get() const { return m_cache; }
|
||||
|
||||
bool init(const void *seed);
|
||||
bool isReady(const void *seed) const;
|
||||
|
||||
static inline constexpr size_t size() { return RANDOMX_CACHE_MAX_SIZE; }
|
||||
|
||||
private:
|
||||
bool isReady(const void *seed) const;
|
||||
|
||||
int m_flags = 0;
|
||||
randomx_cache *m_cache = nullptr;
|
||||
uint8_t m_seed[32];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue