Bitcoin Core
27.99.0
P2P Digital Currency
src
kernel
context.cpp
Go to the documentation of this file.
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 <string>
12
13
14
namespace
kernel
{
15
Context::Context
()
16
{
17
std::string sha256_algo =
SHA256AutoDetect
();
18
LogPrintf
(
"Using the '%s' SHA256 implementation\n"
, sha256_algo);
19
RandomInit
();
20
}
21
22
23
}
// namespace kernel
RandomInit
RandomInit()
Definition:
random.cpp:769
context.h
LogPrintf
#define LogPrintf(...)
Definition:
logging.h:244
kernel
Definition:
coinstatsindex.h:13
SHA256AutoDetect
std::string SHA256AutoDetect(sha256_implementation::UseImplementation use_implementation)
Autodetect the best available SHA256 implementation.
Definition:
sha256.cpp:587
sha256.h
kernel::Context::Context
Context()
Definition:
context.cpp:15
Generated on Fri Jul 26 2024 02:44:30 for Bitcoin Core by
1.9.1