Yes, I think allowing a seed to be set makes a lot of sense. I've just added a bug for this and I'll see if I can get it in the next release.
I'm not convinced that the random number generator you have is going to produce random enough values to be useful all the time, but it could be great as a Seed as you say.
I wonder if there's another source of entropy available? I guess the only other thing is to use unconnected analog inputs, and maybe the temperature...
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.
Hi,
Yes, I think allowing a seed to be set makes a lot of sense. I've just added a bug for this and I'll see if I can get it in the next release.
I'm not convinced that the random number generator you have is going to produce random enough values to be useful all the time, but it could be great as a Seed as you say.
I wonder if there's another source of entropy available? I guess the only other thing is to use unconnected analog inputs, and maybe the temperature...