mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-19 13:59:57 +00:00
Update cryptopp
This commit is contained in:
parent
343bbfdabc
commit
1a44949ef7
2 changed files with 2 additions and 2 deletions
2
externals/cryptopp/cryptopp
vendored
2
externals/cryptopp/cryptopp
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 841c37e34765487a2968357369ab74db8b10a62d
|
||||
Subproject commit 24bc2b85674254fb294e717eb5b47d9f53e786b8
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue