diff --git a/src/crypto/rx/RxCache.cpp b/src/crypto/rx/RxCache.cpp index a5e9efb3a..13ff0cd36 100644 --- a/src/crypto/rx/RxCache.cpp +++ b/src/crypto/rx/RxCache.cpp @@ -62,7 +62,7 @@ xmrig::RxCache::~RxCache() } -bool xmrig::RxCache::init(const void *seed) +bool xmrig::RxCache::init(const uint8_t *seed) { if (isReady(seed)) { return false; @@ -75,7 +75,7 @@ bool xmrig::RxCache::init(const void *seed) } -bool xmrig::RxCache::isReady(const void *seed) const +bool xmrig::RxCache::isReady(const uint8_t *seed) const { return memcmp(m_seed, seed, sizeof(m_seed)) == 0; } diff --git a/src/crypto/rx/RxCache.h b/src/crypto/rx/RxCache.h index 80c1fabab..433058b7b 100644 --- a/src/crypto/rx/RxCache.h +++ b/src/crypto/rx/RxCache.h @@ -52,12 +52,12 @@ public: inline const uint8_t *seed() const { return m_seed; } inline randomx_cache *get() const { return m_cache; } - bool init(const void *seed); + bool init(const uint8_t *seed); static inline constexpr size_t size() { return RANDOMX_CACHE_MAX_SIZE; } private: - bool isReady(const void *seed) const; + bool isReady(const uint8_t *seed) const; int m_flags = 0; randomx_cache *m_cache = nullptr; diff --git a/src/crypto/rx/RxDataset.cpp b/src/crypto/rx/RxDataset.cpp index 7d498c4d8..50459a555 100644 --- a/src/crypto/rx/RxDataset.cpp +++ b/src/crypto/rx/RxDataset.cpp @@ -64,7 +64,7 @@ xmrig::RxDataset::~RxDataset() } -bool xmrig::RxDataset::init(const void *seed, uint32_t numThreads) +bool xmrig::RxDataset::init(const uint8_t *seed, uint32_t numThreads) { cache()->init(seed); diff --git a/src/crypto/rx/RxDataset.h b/src/crypto/rx/RxDataset.h index d3488668d..932f4ed94 100644 --- a/src/crypto/rx/RxDataset.h +++ b/src/crypto/rx/RxDataset.h @@ -52,7 +52,7 @@ public: inline randomx_dataset *get() const { return m_dataset; } inline RxCache *cache() const { return m_cache; } - bool init(const void *seed, uint32_t numThreads); + bool init(const uint8_t *seed, uint32_t numThreads); std::pair hugePages() const; static inline constexpr size_t size() { return RANDOMX_DATASET_MAX_SIZE; }