From 88b16def0d013322e8c84be08e100ad4b8085eef Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Tue, 9 Dec 2025 07:01:47 -0700 Subject: [PATCH] Disable clang-format around this macro MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit clang-format sensibly thinks this is an arithmatic operation, and formats the math. Sadly it does not know we eventually stringify this behind several other layers of nested macros and so putting spaces in here is bad. Reviewed-by: Saša Nedvědický Reviewed-by: Norbert Pocs Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/29350) (cherry picked from commit 5b0dffa8610a085e937f692754281634aca7b7b8) --- crypto/rand/rand_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 6651bfd9d37..d9e8f02da7f 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -24,9 +24,11 @@ #include "crypto/context.h" #include "internal/provider.h" +/* clang-format off */ #ifndef OPENSSL_DEFAULT_SEED_SRC -#define OPENSSL_DEFAULT_SEED_SRC SEED - SRC +#define OPENSSL_DEFAULT_SEED_SRC SEED-SRC #endif +/* clang-format on */ typedef struct rand_global_st { /* -- 2.47.3