Skip to content
Discussion options

You must be logged in to vote

As you tell, the esp8266 random module does implement only a small subset of the random module to save flash space for devices with small memory. Building your own firmware, you can change that by setting:

#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)

In the mpconfigport.h of the ESP8266 port, or better in the mpconfigboard.h of the GENERIC board section. Generally, the configuration could be changed to support more features with the 2MB version of the firmware. Only someone has to make the change, test it and make a PR for it.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@gbroulet
Comment options

@jimmo
Comment options

Answer selected by gbroulet
Comment options

You must be logged in to vote
8 replies
@scruss
Comment options

@rsharris
Comment options

@Josverl
Comment options

Josverl May 20, 2025
Collaborator Sponsor

@rsharris
Comment options

@Josverl
Comment options

Josverl May 21, 2025
Collaborator Sponsor

Comment options

You must be logged in to vote
1 reply
@rsharris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants