Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ GetRand
Function
GetRand
src/random.cpp:588–591 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
586
bool g_mock_deterministic_tests{false};
587
588
uint64_t GetRand(uint64_t nMax) noexcept
589
{
590
return FastRandomContext(g_mock_deterministic_tests).randrange(nMax);
591
}
592
593
int GetRandInt(int nMax) noexcept
594
{
Callers
15
GetRandInt
Function · 0.85
GetExponentialRand
Function · 0.85
CServiceHash
Method · 0.85
GetRandomDuration
Function · 0.85
check
Method · 0.85
AppInitMain
Function · 0.85
CBlockHeaderAndShortTxIDs
Method · 0.85
PriorityComputer
Method · 0.85
ConnectNode
Method · 0.85
ResendWalletTransactions
Method · 0.85
BOOST_AUTO_TEST_CASE
Function · 0.85
reset
Method · 0.85
Calls
2
FastRandomContext
Class · 0.85
randrange
Method · 0.80
Tested by
1
BOOST_AUTO_TEST_CASE
Function · 0.68