Hey guys,
I just added a new pickRandomSeed() function which should be called just after gb.begin();
It's a mix of the battery voltage, the ambiant light and the time elapsed, which depends on how long does the user take to press 'A' to skip the start menu. It works fine with the emulator.
Here is what it does:
- Code:
randomSeed(battery.voltage * ~micros() + backlight.ambientLight + micros());
As there is a multiplication of 2 pretty large numbers it should overflow several times and give a random random seed ("random random", haha).