Skip to content

Commit 71e3d43

Browse files
committed
fixup! mimalloc: use "weak" random seed when statically linked
Revert this in preparation for upgrading mimalloc to v2.1.2 and then redoing this patch. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a0e4621 commit 71e3d43

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compat/mimalloc/init.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,7 @@ static bool _mi_heap_init(void) {
278278
_mi_memcpy_aligned(tld, &tld_empty, sizeof(*tld));
279279
_mi_memcpy_aligned(heap, &_mi_heap_empty, sizeof(*heap));
280280
heap->thread_id = _mi_thread_id();
281-
#if defined(_WIN32) && !defined(MI_SHARED_LIB)
282-
_mi_random_init_weak(&heap->random); // match mi_heap_main_init()
283-
#else
284281
_mi_random_init(&heap->random);
285-
#endif
286282
heap->cookie = _mi_heap_random_next(heap) | 1;
287283
heap->keys[0] = _mi_heap_random_next(heap);
288284
heap->keys[1] = _mi_heap_random_next(heap);

0 commit comments

Comments
 (0)