[tor-commits] [tor/master] Lightly refactor and test format_hex_number_sigsafe