8000 os.urandom for Pico/RP2040 not supported · Issue #4196 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
os.urandom for Pico/RP2040 not supported #4196
Closed
@joelburton

Description

@joelburton

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0