aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2012-05-22 11:05:46 -0400
committerGavin Andresen <[email protected]>2012-05-22 11:13:00 -0400
commitd0e4051cd8c28871a0e390553a4884df854aa2e3 (patch)
tree7ae2c230153ba3f844122c2045f5db8a14560fd7 /src/util.cpp
parentMerge pull request #1372 from jgarzik/json-threadsafe (diff)
parentCache signature verifications (diff)
downloaddiscoin-d0e4051cd8c28871a0e390553a4884df854aa2e3.tar.xz
discoin-d0e4051cd8c28871a0e390553a4884df854aa2e3.zip
Merge branch 'optimize'
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 9e7a8c034..08e3625b3 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;
+}