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

Function InitFastRandomSeed

phxsqlclient/utils/random.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static void InitFastRandomSeed() {
67 static pthread_once_t once = PTHREAD_ONCE_INIT;
68 pthread_once(&once, InitFastRandomSeedAtFork);
69
70 ResetFastRandomSeed();
71}
72
73unsigned int GetFastRandom() {
74 if (!seed_routine_safe.init) {

Callers 1

GetFastRandomFunction · 0.85

Calls 1

ResetFastRandomSeedFunction · 0.85

Tested by

no test coverage detected