NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Randomized RequestEnvelope::uk12 (ms_since_last_locationfix) #134

Closed DrDelay closed 7 years ago

DrDelay commented 7 years ago

The upstream repo of the protos got quite a big update today, one of the changes was renaming RequestEnvelope::unknown12 to ms_since_last_locationfix (https://github.com/AeonLucid/POGOProtos/commit/e9b4e769becf525374732d9ce4cd25e682f73cd3#diff-05fd34d99e02cbcf76d2626a0b9132e7R22).

Therefore I suggest randomizing the value a bit.

rand is an insecure random generator, but I don't think it matters that much in this use-case.