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

Function InitFastRandomSeedAtFork

phxqueue/comm/utils/other_util.cpp:64–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static void InitFastRandomSeedAtFork() {
65 pthread_atfork(ResetFastRandomSeed, ResetFastRandomSeed, ResetFastRandomSeed);
66}
67
68static void InitFastRandomSeed() {
69 static pthread_once_t once = PTHREAD_ONCE_INIT;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected