summaryrefslogtreecommitdiff
path: root/tests/micropython/opt_level.py
diff options
context:
space:
mode:
authorrobert <robert@hammelrath.com>2020-08-22 20:56:26 +0200
committerDamien George <damien@micropython.org>2020-10-29 14:11:08 +1100
commitb4062894df8e17e11179dcb5f5b28b27eed33aff (patch)
treecd65e0bf5a72818f56f44b5c4b9c9d07ca604f9e /tests/micropython/opt_level.py
parent03a1f94ea16a532bd4219092edb06e251d9a0ca5 (diff)
esp32/mpconfigport.h: Seed the urandom module on import.
For seeding, the RNG function of the ESP-IDF is used, which is told to be a true RNG, at least when WiFi or Bluetooth is enabled. Seeding on import is as per CPython. To obtain a reproducible sequence of pseudo-random numbers one must explicitly seed with a known value.
Diffstat (limited to 'tests/micropython/opt_level.py')
0 files changed, 0 insertions, 0 deletions