As for the RNG: I let it run for a while and the distribution looks okay - superficially. I am thinking about generating a bunch of random numbers and dumping them to a file. Then I could put them into a statistical test on the PC to see how good it is. But it might be dependent on the board and on the power supply. So it does not necessarily apply to all situations. But the general principle seems to be sound.
I tried the analog inputs as well, they seem to give the same results, pretty much. In my first version, you could select the input. The temperature also looks like a great idea! In addition, as mentioned the time since the startup could be used as an additional source.
If there is interest, I could put that in a library. I would then use the temperature and time as well to collect enough randomness.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks, the seed would be a great start!
As for the RNG: I let it run for a while and the distribution looks okay - superficially. I am thinking about generating a bunch of random numbers and dumping them to a file. Then I could put them into a statistical test on the PC to see how good it is. But it might be dependent on the board and on the power supply. So it does not necessarily apply to all situations. But the general principle seems to be sound.
I tried the analog inputs as well, they seem to give the same results, pretty much. In my first version, you could select the input. The temperature also looks like a great idea! In addition, as mentioned the time since the startup could be used as an additional source.
If there is interest, I could put that in a library. I would then use the temperature and time as well to collect enough randomness.