2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Update cryptopp

This commit is contained in:
James 2017-08-08 17:50:09 +10:00
parent 343bbfdabc
commit 1a44949ef7
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 841c37e34765487a2968357369ab74db8b10a62d
Subproject commit 24bc2b85674254fb294e717eb5b47d9f53e786b8

View file

@ -681,7 +681,7 @@ void GenerateConsoleUniqueId(u32& random_number, u64& console_id) {
CryptoPP::AutoSeededRandomPool rng;
random_number = rng.GenerateWord32(0, 0xFFFF);
u64_le local_friend_code_seed;
rng.GenerateBlock(reinterpret_cast<byte*>(&local_friend_code_seed),
rng.GenerateBlock(reinterpret_cast<CryptoPP::byte*>(&local_friend_code_seed),
sizeof(local_friend_code_seed));
console_id = (local_friend_code_seed & 0x3FFFFFFFF) | (static_cast<u64>(random_number) << 48);
}