Kernel: Add templated get function for Random

This commit is contained in:
Bananymous 2024-05-29 15:32:00 +03:00
parent 30592b27ce
commit 3823de6552
1 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,14 @@ namespace Kernel
static void initialize();
static uint32_t get_u32();
static uint64_t get_u64();
template<typename T>
static T get();
};
template<>
inline uint32_t Random::get<uint32_t>() { return Random::get_u32(); }
template<>
inline uint64_t Random::get<uint64_t>() { return Random::get_u64(); }
}