![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | InsecureRand |
Functions | |
void | RandAddSeed () |
void | RandAddSeedPerfmon () |
void | GetRandBytes (unsigned char *buf, int num) |
uint64_t | GetRand (uint64_t nMax) |
int | GetRandInt (int nMax) |
uint256 | GetRandHash () |
void | seed_insecure_rand (bool fDeterministic=false) |
static uint32_t | insecure_rand (void) |
Variables | |
uint32_t | insecure_rand_Rz |
uint32_t | insecure_rand_Rw |
uint64_t GetRand | ( | uint64_t | nMax | ) |
Definition at line 94 of file random.cpp.
Referenced by AdvertiseLocal(), ConnectSocketByName(), convertSeed6(), GetRandInt(), PoissonNextSend(), ProcessMessage(), CWallet::ResendWalletTransactions(), CRollingBloomFilter::reset(), and CConnman::ThreadDNSAddressSeed().
void GetRandBytes | ( | unsigned char * | buf, |
int | num | ||
) |
Functions to gather random data via the OpenSSL PRNG
Definition at line 86 of file random.cpp.
Referenced by CNode::CalculateKeyedNetGroup(), CNode::CNode(), CDBWrapper::CreateObfuscateKey(), ECC_Start(), CWallet::EncryptWallet(), CMnemonic::Generate(), GenerateAuthCookie(), CKeePassIntegrator::generateRandomKey(), GetRand(), GetRandHash(), InsecureRand::InsecureRand(), CKey::MakeNewKey(), TorController::protocolinfo_cb(), seed_insecure_rand(), SendMessages(), CKey::VerifyPubKey(), CAddrDB::Write(), and CBanDB::Write().
uint256 GetRandHash | ( | ) |
Definition at line 114 of file random.cpp.
Referenced by CAddrMan::Clear(), LimitOrphanTxSize(), RelayAddress(), and SendMessages().
int GetRandInt | ( | int | nMax | ) |
Definition at line 109 of file random.cpp.
Referenced by CPrivateSendServer::ChargeFees(), CPrivateSendServer::ChargeRandomFees(), CMasternodeMan::CheckAndRemove(), CPrivateSendServer::CreateNewSession(), CWallet::CreateTransaction(), CPrivateSendClient::DoAutomaticDenominating(), CPrivateSend::GetDenominations(), CPrivateSendClient::PrepareDenominate(), CAddrMan::RandomInt(), CGovernanceManager::RequestGovernanceObject(), CWallet::SelectCoinsByDenominations(), CWallet::SelectCoinsMinConf(), CMasternodeMan::SendVerifyRequest(), ThreadCheckPrivateSendClient(), and CConnman::ThreadOpenConnections().
|
inlinestatic |
Definition at line 42 of file random.h.
Referenced by ApproximateBestSubset(), CTxMemPool::check(), ConnectThroughProxy(), CNode::PushAddress(), and CAddrMan::Select_().
void RandAddSeed | ( | ) |
Seed OpenSSL PRNG with additional entropy data
Definition at line 38 of file random.cpp.
Referenced by CInit::CInit(), and RandAddSeedPerfmon().
void RandAddSeedPerfmon | ( | ) |
Definition at line 46 of file random.cpp.
Referenced by AppInit2(), CWallet::EncryptWallet(), CKeePassIntegrator::generateRandomKey(), CKey::MakeNewKey(), and ProcessMessage().
void seed_insecure_rand | ( | bool | fDeterministic = false | ) |
Seed insecure_rand using the random pool.
Deterministic | Use a deterministic seed |
Definition at line 123 of file random.cpp.
Referenced by AppInit2(), and ApproximateBestSubset().
uint32_t insecure_rand_Rw |
Definition at line 122 of file random.cpp.
Referenced by insecure_rand(), and seed_insecure_rand().
uint32_t insecure_rand_Rz |
MWC RNG of George Marsaglia This is intended to be fast. It has a period of 2^59.3, though the least significant 16 bits only have a period of about 2^30.1.
Definition at line 121 of file random.cpp.
Referenced by insecure_rand(), and seed_insecure_rand().