MCPcopy Create free account
hub / github.com/Tencent/phxqueue / InitFastRandomSeed

Function InitFastRandomSeed

phxqueue/comm/utils/other_util.cpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void InitFastRandomSeed() {
69 static pthread_once_t once = PTHREAD_ONCE_INIT;
70 pthread_once(&once, InitFastRandomSeedAtFork);
71
72 ResetFastRandomSeed();
73}
74
75const uint32_t OtherUtils::FastRand() {
76 if (!seed_thread_safe.init) {

Callers 1

FastRandMethod · 0.85

Calls 1

ResetFastRandomSeedFunction · 0.85

Tested by

no test coverage detected