I'm about to port a project from Arduino Uno to Teensy 3.1 that relies on unpredictable random numbers. On the Uno I use this bit of awesome code called Probably Random:
https://gist.github.com/endolith/2568571
As you can see, it uses the AVR Watchdog Interrupt for entropy, so I assume it won't compile on Teensy. Is there another method I can use on Teensy 3.1 to return "truly" random numbers? Or at least an entropy method that makes the Arduino Random() function usable? Thanks for the help!
https://gist.github.com/endolith/2568571
As you can see, it uses the AVR Watchdog Interrupt for entropy, so I assume it won't compile on Teensy. Is there another method I can use on Teensy 3.1 to return "truly" random numbers? Or at least an entropy method that makes the Arduino Random() function usable? Thanks for the help!