MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / RandAddSeed

Function RandAddSeed

src/random.cpp:131–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void RandAddSeed()
132{
133 // Seed with CPU performance counter
134 int64_t nCounter = GetPerformanceCounter();
135 RAND_add(&nCounter, sizeof(nCounter), 1.5);
136 memory_cleanse((void*)&nCounter, sizeof(nCounter));
137}
138
139static void RandAddSeedPerfmon()
140{

Callers 2

RandAddSeedPerfmonFunction · 0.85
CInitMethod · 0.85

Calls 2

GetPerformanceCounterFunction · 0.85
memory_cleanseFunction · 0.85

Tested by

no test coverage detected