From e2f73d62df6e7b79483b571cd744701e233cf94a Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 23 Jun 2018 02:10:12 -0600 Subject: Moved pseudo_rand() into its own header, and made it gather entropy from ADC readings to improve randomness. Adjusted candle mode to use lower bits instead of upper bits, because the lower bits are more random. (also, the lower-bit method is slightly smaller in ROM) --- spaghetti-monster/spaghetti-monster.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spaghetti-monster/spaghetti-monster.h') diff --git a/spaghetti-monster/spaghetti-monster.h b/spaghetti-monster/spaghetti-monster.h index 5599bca..08690b4 100644 --- a/spaghetti-monster/spaghetti-monster.h +++ b/spaghetti-monster/spaghetti-monster.h @@ -34,6 +34,7 @@ #include "fsm-pcint.h" #include "fsm-standby.h" #include "fsm-ramping.h" +#include "fsm-random.h" #ifdef USE_EEPROM #include "fsm-eeprom.h" #endif @@ -71,6 +72,7 @@ void loop(); #include "fsm-pcint.c" #include "fsm-standby.c" #include "fsm-ramping.c" +#include "fsm-random.c" #ifdef USE_EEPROM #include "fsm-eeprom.c" #endif -- cgit v1.2.3