someone42 / hardware-bitcoin-wallet

A minimal Bitcoin wallet intended for embedded devices
BSD 2-Clause "Simplified" License
151 stars 44 forks source link

Added persistent pool to the RNG. #1

Closed petertodd closed 12 years ago

petertodd commented 12 years ago

Ensures that even if the HWRNG becomes broken, outputting random numbers will still be unpredictable, if not strictly meeting their advertised amount of entropy.

This commit won't compile as-is, (nor have I tried) as currently all the non-volatile-storage using code is in wallet.c, along with the offsets for where in the storage the data is kept. This needs to be refactored into a header.