From 298bf9510578263a1439513729e5ff955a453437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc?= Date: Tue, 22 Jul 2025 10:19:25 -0700 Subject: [PATCH] refactor: simplify `Obfuscation::HexKey` See: https://github.com/bitcoin/bitcoin/pull/31144#discussion_r2215746554 Co-authored-by: maflcko <6399679+maflcko@users.noreply.github.com> --- src/util/obfuscation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/obfuscation.h b/src/util/obfuscation.h index db7527064b4..a9de5f2f038 100644 --- a/src/util/obfuscation.h +++ b/src/util/obfuscation.h @@ -78,7 +78,7 @@ public: std::string HexKey() const { - return HexStr(std::bit_cast>(m_rotations[0])); + return HexStr(std::as_bytes(std::span{&m_rotations[0], 1})); } private: