MCPcopy Create free account
hub / github.com/Codesire-Deng/co_context / rnd

Function rnd

example/sem_std.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17constexpr auto time_tick{10ms};
18
19unsigned rnd() {
20 static std::uniform_int_distribution<unsigned> distribution{
21 2U, 9U
22 }; // [delays]
23 static std::random_device engine;
24 static std::mt19937 noise{engine()};
25 return distribution(noise);
26}
27
28class alignas(128 /*std::hardware_destructive_interference_size*/) Guide {
29 inline static std::mutex cout_mutex;

Callers 1

GuideClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected