MCPcopy Create free account
hub / github.com/ElementsProject/elements / SeedTimestamp

Function SeedTimestamp

src/random.cpp:454–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452 */
453
454static void SeedTimestamp(CSHA512& hasher) noexcept
455{
456 int64_t perfcounter = GetPerformanceCounter();
457 hasher.Write((const unsigned char*)&perfcounter, sizeof(perfcounter));
458}
459
460static void SeedFast(CSHA512& hasher) noexcept
461{

Callers 3

SeedFastFunction · 0.85
SeedSlowFunction · 0.85
SeedPeriodicFunction · 0.85

Calls 2

GetPerformanceCounterFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected