MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rand_float

Function rand_float

src/ui/layout3d.c:171–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static float rand_float(uint32_t *seed) {
172 *seed = (*seed) * 1103515245u + 12345u;
173 return (float)((*seed >> 16) & 0x7FFF) / 32768.0f - 0.5f;
174}
175
176/* Ceiling for a caller-requested node budget. CBM_UI_MAX_RENDER_NODES lowers
177 * (or raises, up to HARD_MAX_NODES) the ceiling for constrained deployments;

Callers 1

cbm_layout_computeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected