Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
73
unsigned int GetFastRandom() {
74
if (!seed_routine_safe.init) {
75
InitFastRandomSeed();
76
}
77
78
return rand_r(&seed_routine_safe.seed);
79
}
80
81
unsigned int GetNextRandom() {
82
return GetFastRandom();
Callers
3
GetNextRandom
Function · 0.85
CheckByRatio
Function · 0.85
RandomPicker
Function · 0.85
Calls
1
InitFastRandomSeed
Function · 0.85
Tested by
no test coverage detected