Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meituan-Dianping/SQLAdvisor
/ rnd
Function
rnd
mysys/testhash.c:281–284 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
279
/* Get a random number in the interval 0 <= x <= n */
280
281
static int rnd(int max_value)
282
{
283
return (int) ((rand() & 32767)/32767.0*max_value);
284
} /* rnd */
285
286
287
void free_record(void *record)
Callers
1
do_test
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected