diff options
| author | Gavin Andresen <[email protected]> | 2012-05-22 11:05:46 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-05-22 11:13:00 -0400 |
| commit | d0e4051cd8c28871a0e390553a4884df854aa2e3 (patch) | |
| tree | 7ae2c230153ba3f844122c2045f5db8a14560fd7 /src/util.cpp | |
| parent | Merge pull request #1372 from jgarzik/json-threadsafe (diff) | |
| parent | Cache signature verifications (diff) | |
| download | discoin-d0e4051cd8c28871a0e390553a4884df854aa2e3.tar.xz discoin-d0e4051cd8c28871a0e390553a4884df854aa2e3.zip | |
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 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; +} |