diff options
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r-- | kernel/features/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c index 67a5abf..76049ef 100644 --- a/kernel/features/mm.c +++ b/kernel/features/mm.c @@ -464,7 +464,7 @@ res memory_sys_alloc(struct page_dir *dir, u32 size, u32 *addr, u32 *id, u8 shar return -ENOMEM; struct memory_object *obj = zalloc(sizeof(*obj)); - obj->id = rdrand() + 1; + obj->id = rand() + 1; obj->prange = memory_range(virtual_to_physical(dir, vaddr), size); obj->refs = 1; obj->shared = shared; |