circuitpython/ports/raspberrypi/common-hal
Jeff Epler ab5eb86118 raspberrypi: implement os.urandom
Since the datasheet cast some doubt on the strength of the "rosc_hw->randombit",
I use the SHA256 hash function to create a high quality random seed
from random values of uncertain entropy, as well as to generate a sequence
of random values from that seed using SHA256 as a cryptographically-secure
random number generator.

In practice, it produces over 100kB/s of random data which does not
have any gross problems according to _PractRand_.
2021-02-17 17:49:25 -06:00
..
analogio Add initial RP2040 support 2021-01-20 19:16:56 -08:00
audiopwmio Add PWM based audio playback 2021-02-09 15:38:33 -08:00
board Add initial RP2040 support 2021-01-20 19:16:56 -08:00
busio Initial commit. Edited error messages in .c files 2021-02-03 05:49:40 +07:00
digitalio Fix DigitalInOut.pull on RP2040 2021-01-22 19:00:37 -08:00
displayio Add initial RP2040 support 2021-01-20 19:16:56 -08:00
microcontroller Update to the very latest SDK w/GP15 restore 2021-02-05 18:44:06 -08:00
neopixel_write Set the pin as output after PIO use 2021-02-08 15:13:37 -06:00
os raspberrypi: implement os.urandom 2021-02-17 17:49:25 -06:00
pwmio handle 100% duty cycle; improve actual_frequency calc 2021-02-13 13:16:49 -05:00
rp2pio rp2pio: Transfer up to 32 bytes before checking background tasks 2021-02-08 08:35:07 -06:00
rtc rtc implementation for rp2040 2021-02-02 00:00:00 +05:30
supervisor Add initial RP2040 support 2021-01-20 19:16:56 -08:00
watchdog extend include path 2021-01-30 14:00:14 +05:30