From ec2793bcc954e372af28fd2014c366250cd9fa8d Mon Sep 17 00:00:00 2001 From: esrrhs Date: Fri, 2 Apr 2021 14:59:09 +0800 Subject: [PATCH] remove useless v4_random_math_init if algo is not cn/r --- src/crypto/cn/CryptoNight_monero.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/cn/CryptoNight_monero.h b/src/crypto/cn/CryptoNight_monero.h index 8b192083f..f34c963c9 100644 --- a/src/crypto/cn/CryptoNight_monero.h +++ b/src/crypto/cn/CryptoNight_monero.h @@ -190,8 +190,8 @@ r##part[1] = static_cast(h##part[12] >> 32); \ r##part[2] = static_cast(h##part[13]); \ r##part[3] = static_cast(h##part[13] >> 32); \ - } \ - v4_random_math_init(code##part, height); + v4_random_math_init(code##part, height); \ + } #define VARIANT4_RANDOM_MATH(part, al, ah, cl, bx0, bx1) \ if (props.isR()) { \