#include "addrman.h"
#include "hash.h"
#include "streams.h"
-
-#include <openssl/rand.h>
+#include "random.h"
#ifndef WIN32
#include <arpa/inet.h>
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
- RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
+ GetRandBytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
- RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
+ GetRandBytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
- RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
+ GetRandBytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);