fix: shuffle algorithm; was messing up the data

This commit is contained in:
2025-06-26 13:23:34 +02:00
parent 402ef330de
commit 378e5cfd22

View File

@@ -27,7 +27,7 @@ static void shuffle(void* restrict ptr, size_t nmemb, size_t membs) {
void* ptrj = (u8*)ptr + j * membs; void* ptrj = (u8*)ptr + j * membs;
memcpy(dat, ptri, membs); memcpy(dat, ptri, membs);
memcpy(ptri, ptrj, membs); memcpy(ptri, ptrj, membs);
memcpy(ptrj, ptri, membs); memcpy(ptrj, dat, membs);
} }
} }