core: Introduce chaos into memory allocations