Move rand functions from util to new random.h/.cpp
[novacoin.git] / src / uint256.cpp
index 2d65072..8faf052 100644 (file)
@@ -3,11 +3,8 @@
 // Distributed under the MIT/X11 software license, see the accompanying
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
-
 #include "uint256.h"
 
-#include <openssl/rand.h>
-
 #include <cassert>
 #include <cstdio>
 #include <cstring>
@@ -216,10 +213,3 @@ uint256::uint256(const std::vector<unsigned char>& vch)
     else
         *this = 0;
 }
-
-uint256 GetRandHash()
-{
-    uint256 hash;
-    RAND_bytes(hash.begin(), hash.size());
-    return hash;
-}