From 148a5e38d47753c807c27e2a84f2e0cda3f9a57d Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Wed, 19 Jul 2017 23:02:13 -0700 Subject: [PATCH] A bit more urandom cleanup --- src/twcrypto/crypto.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/twcrypto/crypto.cpp b/src/twcrypto/crypto.cpp index d856382..a5efe74 100644 --- a/src/twcrypto/crypto.cpp +++ b/src/twcrypto/crypto.cpp @@ -57,8 +57,6 @@ #include #include -#define HAVE_DEVICE_RANDOM (HAVE_DEV_RANDOM || HAVE_DEV_URANDOM || HAVE_DEV_ARANDOM) - const uint32 EL_GAMAL_SIG_PUBLIC_MAGIC_NUM = 0x7ae2c945; const uint32 EL_GAMAL_SIG_PRIVATE_MAGIC_NUM = 0x0d0ffa12; @@ -1243,7 +1241,7 @@ cHashedKey192::~cHashedKey192() ///////////////////////////////////////////////////////// -#if HAVE_DEVICE_RANDOM +#if HAVE_DEV_URANDOM static bool randomize_by_device(const char* device_name, int8* destbuf, int len) { static int rng_device = -1;