Browse Source

fix memory size bug

miguelfreitas
Michael.X 10 years ago
parent
commit
02086a0f01
  1. 2
      src/rpcmining.cpp

2
src/rpcmining.cpp

@ -19,7 +19,7 @@ void InitRPCMining() @@ -19,7 +19,7 @@ void InitRPCMining()
{
// getwork/getblocktemplate mining rewards paid here:
salt.resize(4);
RAND_bytes(salt.data(), sizeof(salt));
RAND_bytes(salt.data(), 4);
}
void ShutdownRPCMining()

Loading…
Cancel
Save