1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-18 01:46:47 +00:00

exo2: remove unused lvars

This commit is contained in:
Michael Scire 2020-05-13 20:44:59 -07:00 committed by SciresM
parent 63629b22a1
commit 435d2fb0c3

View file

@ -83,11 +83,8 @@ namespace ams::secmon::smc {
} }
void GetRandomFromCache(void *dst, size_t size) { void GetRandomFromCache(void *dst, size_t size) {
u8 * const cache = GetRandomBytesCache();
u8 * cur_dst = static_cast<u8 *>(dst);
/* Copy out the requested size. */ /* Copy out the requested size. */
std::memcpy(dst, cache + g_random_offset_low, size); std::memcpy(dst, GetRandomBytesCache() + g_random_offset_low, size);
/* Advance. */ /* Advance. */
g_random_offset_low += size; g_random_offset_low += size;