diff options
author | konrad <konrad@serenityos.org> | 2023-01-08 05:26:46 +0100 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-01-25 23:17:36 +0100 |
commit | 7c8e61f4d149c8404d3c2432b7244482ec346ec4 (patch) | |
tree | 05700dbc7a30f00072847c5dafbc64e5196fcbdd /Kernel/Random.cpp | |
parent | d7d233ab04ef3baf449bea130fd0f27db0a2cd47 (diff) | |
download | serenity-7c8e61f4d149c8404d3c2432b7244482ec346ec4.zip |
Kernel: Unify x86-64 assembly snippets naming for RDSEED & RDRAND
Diffstat (limited to 'Kernel/Random.cpp')
-rw-r--r-- | Kernel/Random.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Random.cpp b/Kernel/Random.cpp index f98162565e..a98b9ab0cc 100644 --- a/Kernel/Random.cpp +++ b/Kernel/Random.cpp @@ -33,13 +33,13 @@ UNMAP_AFTER_INIT KernelRng::KernelRng() dmesgln("KernelRng: Using RDSEED as entropy source"); for (size_t i = 0; i < pool_count * reseed_threshold; ++i) { - add_random_event(Kernel::rdseed(), i % 32); + add_random_event(Kernel::read_rdseed(), i % 32); } } else if (Processor::current().has_feature(CPUFeature::RDRAND)) { dmesgln("KernelRng: Using RDRAND as entropy source"); for (size_t i = 0; i < pool_count * reseed_threshold; ++i) { - add_random_event(Kernel::rdrand(), i % 32); + add_random_event(Kernel::read_rdrand(), i % 32); } } else if (TimeManagement::the().can_query_precise_time()) { // Add HPET as entropy source if we don't have anything better. |