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

Function GetFastRandom

phxsqlclient/utils/random.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73unsigned int GetFastRandom() {
74 if (!seed_routine_safe.init) {
75 InitFastRandomSeed();
76 }
77
78 return rand_r(&seed_routine_safe.seed);
79}
80
81unsigned int GetNextRandom() {
82 return GetFastRandom();

Callers 3

GetNextRandomFunction · 0.85
CheckByRatioFunction · 0.85
RandomPickerFunction · 0.85

Calls 1

InitFastRandomSeedFunction · 0.85

Tested by

no test coverage detected