pokitto / PokittoLib

Library for making programs on Pokitto hardware
22 stars 16 forks source link

initRandom is empty in hardware #26

Closed Pharap closed 6 years ago

Pharap commented 6 years ago

The hardware version of initRandom is empty:

https://github.com/pokitto/PokittoLib/blob/54c64c68bd5822acd9adda897126bbf307f8da4f/Pokitto/POKITTO_HW/PokittoHW.cpp#L49

Is there something we can do to fill it with entropy? Is there a hardware timer or a permenantly unconnected pin that can be sampled?

pokitto commented 6 years ago

initRandom now uses battery level and time(NULL) (=seconds since 1974) to initialize