mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
Replace thread_local mt19937 with xrpl::default_prng() for span ID generation — uses the project's existing thread-local xor-shift engine. One call yields a uint64_t (8 bytes), filling the span ID in a single memcpy without loops. Fix compilation failure when XRPL_ENABLE_TELEMETRY is not defined: move xrpl.pb.h include outside the #ifdef guard in TxTracing.h since protocol::TMTransaction is used unconditionally in the function signature. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>