X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=a40771417b2ba28b58fe9a51eee1503266e7d54f;hp=dca41979812b9ab50ac39101c46403910dee6a1d;hb=23e7583a8c9a0dcee9cbbf3be8bfc453298773f0;hpb=5e322a72f94e3c759bb37cec37d8c066766b6072 diff --git a/src/util.cpp b/src/util.cpp index dca4197..a407714 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -175,6 +175,12 @@ int GetRandInt(int nMax) return GetRand(nMax); } +uint256 GetRandHash() +{ + uint256 hash; + RAND_bytes((unsigned char*)&hash, sizeof(hash)); + return hash; +}