mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Making sure the 1st 2-bits on the 1st byte of MAC address' OUI are zero to prevent issue with some games (ie. Gran Turismo)
This commit is contained in:
1 parent
9c5f02fbf5
commit
ca059bc962
3 files changed
+9
No files matched your search
@@ -378,6 +378,10 @@ std::string CreateRandMAC() {
|
||||
srand(time(nullptr));
|
||||
for (int i = 0; i < 6; i++) {
|
||||
u32 value = rand() % 256;
|
||||
if (i == 0) {
|
||||
// Making sure the 1st 2-bits on the 1st byte of OUI are zero to prevent issue with some games (ie. Gran Turismo)
|
||||
value &= 0xfc;
|
||||
}
|
||||
if (value <= 15)
|
||||
randStream << '0' << std::hex << value;
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user