diff --git a/src/base/tools/Cvt.cpp b/src/base/tools/Cvt.cpp index 0c9cdbf1e..be46bc0c5 100644 --- a/src/base/tools/Cvt.cpp +++ b/src/base/tools/Cvt.cpp @@ -140,7 +140,6 @@ static int cvt_hex2bin(unsigned char *const bin, const size_t bin_maxlen, const return ret; } -#define sodium_bin2hex cvt_bin2hex #define sodium_hex2bin cvt_hex2bin #endif @@ -218,7 +217,7 @@ xmrig::Buffer xmrig::Cvt::fromHex(const char *in, size_t size) bool xmrig::Cvt::toHex(char *hex, size_t hex_maxlen, const uint8_t *bin, size_t bin_len) { - return sodium_bin2hex(hex, hex_maxlen, bin, bin_len) != nullptr; + return cvt_bin2hex(hex, hex_maxlen, bin, bin_len) != nullptr; }