mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Kernel: Convert random bytes interface to use AK::Bytes
This commit is contained in:
parent
0678ac265c
commit
f3baa5d8c9
5 changed files with 20 additions and 19 deletions
|
@ -724,7 +724,7 @@ static Vector<ELF::AuxiliaryValue> generate_auxiliary_vector(FlatPtr load_base,
|
|||
auxv.append({ ELF::AuxiliaryValue::Secure, ((uid != euid) || (gid != egid)) ? 1 : 0 });
|
||||
|
||||
char random_bytes[16] {};
|
||||
get_fast_random_bytes((u8*)random_bytes, sizeof(random_bytes));
|
||||
get_fast_random_bytes({ (u8*)random_bytes, sizeof(random_bytes) });
|
||||
|
||||
auxv.append({ ELF::AuxiliaryValue::Random, String(random_bytes, sizeof(random_bytes)) });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue