mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel: Convert random bytes interface to use AK::Bytes
This commit is contained in:
parent
0678ac265c
commit
f3baa5d8c9
Notes:
sideshowbarker
2024-07-18 04:56:28 +09:00
Author: https://github.com/bgianfo
Commit: f3baa5d8c9
Pull-request: https://github.com/SerenityOS/serenity/pull/9720
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