Merge branch 'optimize'

This commit is contained in:
Gavin Andresen 2012-05-22 11:05:46 -04:00
commit d0e4051cd8
6 changed files with 544 additions and 286 deletions

View file

@ -176,6 +176,12 @@ int GetRandInt(int nMax)
return GetRand(nMax);
}
uint256 GetRandHash()
{
uint256 hash;
RAND_bytes((unsigned char*)&hash, sizeof(hash));
return hash;
}