rand: Fix allocation bug
This commit is contained in:
parent
1f10b55b29
commit
8bb0db92d0
BIN
limine-pxe.bin
BIN
limine-pxe.bin
Binary file not shown.
BIN
limine.bin
BIN
limine.bin
Binary file not shown.
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue