Use GnuTLS-OpenSSL instead of OpenSSL. Thanks to Zhenech for help with this patch.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "tools.h"
|
||||
#include <core/loghelper.h>
|
||||
#include <openssl/rand.h>
|
||||
#include <core/openssl_wrapper.h>
|
||||
|
||||
#include <limits>
|
||||
|
||||
@@ -41,8 +41,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
|
||||
|
||||
if(!RAND_bytes(rand_buf, 4))
|
||||
{
|
||||
RAND_pseudo_bytes(rand_buf, 4);
|
||||
LOG_MSG("RAND_bytes failed, using RAND_pseudo_bytes.");
|
||||
LOG_MSG("RAND_bytes failed!");
|
||||
}
|
||||
|
||||
randNumber = 0;
|
||||
@@ -66,8 +65,7 @@ void Tools::getRandNumber(int start, int end, int howMany, int* randArray, bool
|
||||
|
||||
if(!RAND_bytes(rand_buf, 4))
|
||||
{
|
||||
RAND_pseudo_bytes(rand_buf, 4);
|
||||
LOG_MSG("RAND_bytes failed, using RAND_pseudo_bytes.");
|
||||
LOG_MSG("RAND_bytes failed!");
|
||||
}
|
||||
|
||||
randNumber = 0;
|
||||
|
||||
Reference in New Issue
Block a user