vm: make aslr use more secure PRNG
This commit is contained in:
parent
d0a8e6ef2b
commit
cf35dcc5bc
@ -407,7 +407,7 @@ VMUserAddressSpace::_RandomizeAddress(addr_t start, addr_t end,
|
||||
else
|
||||
range = min_c(range, kMaxRandomize);
|
||||
|
||||
addr_t random = get_random<addr_t>();
|
||||
addr_t random = secure_get_random<addr_t>();
|
||||
random %= range;
|
||||
random &= ~addr_t(alignment - 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user