Commit 5b0dffa861 for openssl.org
commit 5b0dffa8610a085e937f692754281634aca7b7b8
Author: Bob Beck <beck@openssl.org>
Date: Tue Dec 9 07:01:47 2025 -0700
Disable clang-format around this macro
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ý <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29350)
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index e3c43a3177..db6aeaaa2e 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -25,9 +25,11 @@
#include "internal/provider.h"
#include "internal/common.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 {
/*