rand: Fix allocation bug
diff --git a/limine-pxe.bin b/limine-pxe.bin
index 391f18d8..f1eb7f88 100644
Binary files a/limine-pxe.bin and b/limine-pxe.bin differ
diff --git a/limine.bin b/limine.bin
index 926cc7bd..46a1c9e9 100644
Binary files a/limine.bin and b/limine.bin differ
diff --git a/stage2/lib/rand.c b/stage2/lib/rand.c
index ed1c51a8..6ce12f39 100644
--- a/stage2/lib/rand.c
+++ b/stage2/lib/rand.c
@@ -66,7 +66,7 @@ static void init_rand(void) {
seed *= (seed ^ rdrand(uint32_t));
}
- status = ext_mem_alloc(n);
+ status = ext_mem_alloc(n * sizeof(uint32_t));
srand(seed);
