rand: Fix allocation bug

This commit is contained in:
mintsuki 2020-12-27 23:12:07 +01:00
parent 1f10b55b29
commit 8bb0db92d0
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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);