summaryrefslogtreecommitdiff
path: root/lib/crypto/Random.cpp
diff options
context:
space:
mode:
authorChris Wilson <qris@users.noreply.github.com>2018-01-02 21:13:55 +0000
committerGitHub <noreply@github.com>2018-01-02 21:13:55 +0000
commit6d7e9562e8485591a4888f1fc2d3c6c657dc7a01 (patch)
tree237b161707ed2b45b07a455f0089f23c6ecc1dd3 /lib/crypto/Random.cpp
parenta0fa0c4f5f338335034f172af290025d48d5a1d5 (diff)
parent85e7efc3fa0477f60318d2cd2144503a9ea8feb9 (diff)
Merge pull request #22 from boxbackup/openssl_1_1
Fix compatibility with OpenSSL 1.1
Diffstat (limited to 'lib/crypto/Random.cpp')
-rw-r--r--lib/crypto/Random.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/Random.cpp b/lib/crypto/Random.cpp
index 1d6a07f0..c34a6eea 100644
--- a/lib/crypto/Random.cpp
+++ b/lib/crypto/Random.cpp
@@ -50,7 +50,7 @@ void Random::Initialise()
// --------------------------------------------------------------------------
void Random::Generate(void *pOutput, int Length)
{
- if(RAND_pseudo_bytes((uint8_t*)pOutput, Length) == -1)
+ if(RAND_bytes((uint8_t*)pOutput, Length) == -1)
{
THROW_EXCEPTION(CipherException, PseudoRandNotAvailable)
}