MCPcopy 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
281static int rnd(int max_value)
282{
283 return (int) ((rand() & 32767)/32767.0*max_value);
284} /* rnd */
285
286
287void free_record(void *record)

Callers 1

do_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected