|
@@ -28,7 +28,7 @@ ErrorOr<NonnullOwnPtr<AddressSpace>> AddressSpace::try_create(AddressSpace const
|
|
return parent->m_region_tree.total_range();
|
|
return parent->m_region_tree.total_range();
|
|
constexpr FlatPtr userspace_range_base = USER_RANGE_BASE;
|
|
constexpr FlatPtr userspace_range_base = USER_RANGE_BASE;
|
|
FlatPtr const userspace_range_ceiling = USER_RANGE_CEILING;
|
|
FlatPtr const userspace_range_ceiling = USER_RANGE_CEILING;
|
|
- size_t random_offset = (get_fast_random<u8>() % 32 * MiB) & PAGE_MASK;
|
|
|
|
|
|
+ size_t random_offset = (get_fast_random<u8>() % 2 * MiB) & PAGE_MASK;
|
|
FlatPtr base = userspace_range_base + random_offset;
|
|
FlatPtr base = userspace_range_base + random_offset;
|
|
return VirtualRange(VirtualAddress { base }, userspace_range_ceiling - base);
|
|
return VirtualRange(VirtualAddress { base }, userspace_range_ceiling - base);
|
|
}();
|
|
}();
|