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

Function _mi_random_split

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

Source from the content-addressed store, hash-verified

140#endif
141
142void _mi_random_split(mi_random_ctx_t* ctx, mi_random_ctx_t* ctx_new) {
143 mi_assert_internal(mi_random_is_initialized(ctx));
144 mi_assert_internal(ctx != ctx_new);
145 chacha_split(ctx, (uintptr_t)ctx_new /*nonce*/, ctx_new);
146}
147
148uintptr_t _mi_random_next(mi_random_ctx_t* ctx) {
149 mi_assert_internal(mi_random_is_initialized(ctx));

Callers 1

mi_heap_new_in_arenaFunction · 0.85

Calls 2

mi_random_is_initializedFunction · 0.85
chacha_splitFunction · 0.85

Tested by

no test coverage detected