// 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>
-#include <stdexcept>
//////////////////////////////////////////////////////////////////////////////
else
*this = 0;
}
-
-uint256 GetRandHash()
-{
- uint256 hash;
- RAND_bytes(hash.begin(), hash.size());
- return hash;
-}