Merge pull request #127 from SChernykh/master

Set scratchpad pointer to null by default
This commit is contained in:
tevador 2019-09-23 20:24:21 +02:00 committed by GitHub
commit 32f396dd11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ protected:
alignas(64) randomx::RegisterFile reg;
alignas(16) randomx::ProgramConfiguration config;
randomx::MemoryRegisters mem;
uint8_t* scratchpad;
uint8_t* scratchpad = nullptr;
union {
randomx_cache* cachePtr = nullptr;
randomx_dataset* datasetPtr;