Closed
Description
Attempts to use os.urandom(n)
on the Pico currently report:
>>> os.urandom(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NotImplementedError: No hardware random available
The datasheet for the Pico indicate that the ring oscillator can be used for this (RP2040 datasheet, page 240). They do note that there are potential cryptographic attacks possible on this, but could this still be a considered "random hardware"? There are CircuitPython libraries that require os.urandom()
.