Skip to content

cxd56: make os.urandom() raise NotImplementedError - #11184

Merged
tannewt merged 1 commit into
adafruit:mainfrom
dhalbert:no-urandom-on-cxd56
Aug 7, 2026
Merged

cxd56: make os.urandom() raise NotImplementedError#11184
tannewt merged 1 commit into
adafruit:mainfrom
dhalbert:no-urandom-on-cxd56

Conversation

@dhalbert

@dhalbert dhalbert commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

The cxd56 implementation of os.urandom() used rand(), but os.urandom() requires a TRNG, and the chip has no support for that. Make os.urandom() raise NotImplementedError.

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt
tannewt merged commit a52bdd9 into adafruit:main Aug 7, 2026
15 checks passed
@dhalbert
dhalbert deleted the no-urandom-on-cxd56 branch August 8, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants