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

Function RandAddSeed

src/commons/random.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void RandAddSeed()
40{
41 // Seed with CPU performance counter
42 int64_t nCounter = GetPerformanceCounter();
43 RAND_add(&nCounter, sizeof(nCounter), 1.5);
44 memory_cleanse((void*)&nCounter, sizeof(nCounter));
45}
46
47void RandAddSeedPerfmon()
48{

Callers 2

RandAddSeedPerfmonFunction · 0.85
CInitMethod · 0.85

Calls 2

GetPerformanceCounterFunction · 0.85
memory_cleanseFunction · 0.85

Tested by

no test coverage detected