ImperialSpaceSociety / picotracker-Lora

This is the code base and hardware design files for the Lora pico tracker to be flown around the world
12 stars 3 forks source link

Use better source of randomness #44

Closed MedadRufus closed 3 years ago

MedadRufus commented 3 years ago

https://github.com/ImperialSpaceSociety/picotracker-Lora/blob/1f9c594074d1ada538eb58c4fedd44a725feb477/Software/Drivers/BSP/Components/ublox/playback.c#L633

This source of randomness updates only every 20 minutes, when a new position is saved to eeprom. So it could be the same value for 20 minutes, and with resets within the 20 minutes, the LGC sequence will be identical. Which means, the past data sent down will be repeated. Bad.

MedadRufus commented 3 years ago

fixed in #49