/Users/eugenesiegel/btc/bitcoin/src/kernel/context.cpp
| Line | Count | Source (jump to first uncovered line) | 
| 1 |  | // Copyright (c) 2022 The Bitcoin Core developers | 
| 2 |  | // Distributed under the MIT software license, see the accompanying | 
| 3 |  | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | 
| 4 |  |  | 
| 5 |  | #include <kernel/context.h> | 
| 6 |  |  | 
| 7 |  | #include <crypto/sha256.h> | 
| 8 |  | #include <logging.h> | 
| 9 |  | #include <random.h> | 
| 10 |  |  | 
| 11 |  | #include <mutex> | 
| 12 |  | #include <string> | 
| 13 |  |  | 
| 14 |  | namespace kernel { | 
| 15 |  | Context::Context() | 
| 16 | 51.2k | { | 
| 17 | 51.2k |     static std::once_flag globals_initialized{}; | 
| 18 | 51.2k |     std::call_once(globals_initialized, []() { | 
| 19 | 0 |         std::string sha256_algo = SHA256AutoDetect(); | 
| 20 | 0 |         LogInfo("Using the '%s' SHA256 implementation\n", sha256_algo);| Line | Count | Source |  | 356 | 0 | #define LogInfo(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Info, /*should_ratelimit=*/true, __VA_ARGS__) | Line | Count | Source |  | 350 | 0 | #define LogPrintLevel_(category, level, should_ratelimit, ...) LogPrintFormatInternal(std::source_location::current(), category, level, should_ratelimit, __VA_ARGS__) | 
 | 
 | 
| 21 | 0 |         RandomInit(); | 
| 22 | 0 |     }); | 
| 23 | 51.2k | } | 
| 24 |  |  | 
| 25 |  |  | 
| 26 |  | } // namespace kernel |