diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-05-22 11:05:46 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-05-22 11:13:00 -0400 |
commit | d0e4051cd8c28871a0e390553a4884df854aa2e3 (patch) | |
tree | 7ae2c230153ba3f844122c2045f5db8a14560fd7 /src/util.cpp | |
parent | eef7c4a77355176541a5fe58a8f605670716e27a (diff) | |
parent | 62922c8ab030953f159b9433e8a8703ab64cea02 (diff) |
Merge branch 'optimize'
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 9e7a8c0348..08e3625b3d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -176,6 +176,12 @@ int GetRandInt(int nMax) return GetRand(nMax); } +uint256 GetRandHash() +{ + uint256 hash; + RAND_bytes((unsigned char*)&hash, sizeof(hash)); + return hash; +} |