mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 14:05:17 -04:00
os: add rngmanager
This commit is contained in:
parent
daa0deb1bf
commit
7dd4e76c1d
6 changed files with 132 additions and 1 deletions
|
@ -42,7 +42,7 @@ namespace ams::os {
|
|||
void GenerateRandomBytes(void *dst, size_t size) {
|
||||
std::scoped_lock lk(g_random_mutex);
|
||||
|
||||
if (!g_initialized_random) {
|
||||
if (AMS_UNLIKELY(!g_initialized_random)) {
|
||||
impl::InitializeRandomImpl(&g_random);
|
||||
g_initialized_random = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue