MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / _mi_random_next

Function _mi_random_next

3rd/mimalloc-2.0.9/src/random.c:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148uintptr_t _mi_random_next(mi_random_ctx_t* ctx) {
149 mi_assert_internal(mi_random_is_initialized(ctx));
150 #if MI_INTPTR_SIZE <= 4
151 return chacha_next32(ctx);
152 #elif MI_INTPTR_SIZE == 8
153 return (((uintptr_t)chacha_next32(ctx) << 32) | chacha_next32(ctx));
154 #else
155 # error "define mi_random_next for this platform"
156 #endif
157}
158
159
160/* ----------------------------------------------------------------------------

Callers 1

_mi_heap_random_nextFunction · 0.85

Calls 2

mi_random_is_initializedFunction · 0.85
chacha_next32Function · 0.85

Tested by

no test coverage detected