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;
|
CryptoPP::AutoSeededRandomPool rng;
|
||||||
random_number = rng.GenerateWord32(0, 0xFFFF);
|
random_number = rng.GenerateWord32(0, 0xFFFF);
|
||||||
u64_le local_friend_code_seed;
|
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));
|
sizeof(local_friend_code_seed));
|
||||||
console_id = (local_friend_code_seed & 0x3FFFFFFFF) | (static_cast<u64>(random_number) << 48);
|
console_id = (local_friend_code_seed & 0x3FFFFFFFF) | (static_cast<u64>(random_number) << 48);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue