You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add os.urandom module to ports/analog for MAX32690_apard
I added a port-specific module, os.urandom() to ports/analog. Now
users can generate random numbers from the TRNG hardware. The following
code generates 3 random numbers and prints them in hex:
import os
print(os.urandom(3).hex())
Files I modiied:
* ports/analog/Makefile: added INC and SRC for TRNG
* ports/mpconfigport.mk: enabled CIRCUITPY_RANDOM
* ports/analog/common-hal/os/__init__.c: implemented common_hal_os_urandom()
* ports/analog/supervisor/port.c: initialized the TRNG object
0 commit comments