diff options
| author | Damien George <damien@micropython.org> | 2024-01-26 12:03:46 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-04-09 00:22:32 +1000 |
| commit | 64af93e74e9de36fd6106e6bea4923fc300afb49 (patch) | |
| tree | dc4380b409f901585a811b17aec39cc132dc93a3 | |
| parent | c6cb082ed1716396f436ae4983131be2dcbf0447 (diff) | |
alif/mpconfigport: Enable MICROPY_PY_RANDOM_SEED_INIT_FUNC.
Uses the SE services to provide a random seed.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/alif/mpconfigport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/alif/mpconfigport.h b/ports/alif/mpconfigport.h index 74cfe8eda..b01eb1908 100644 --- a/ports/alif/mpconfigport.h +++ b/ports/alif/mpconfigport.h @@ -93,6 +93,7 @@ #define MICROPY_PY_OS_SYNC (1) #define MICROPY_PY_OS_UNAME (1) #define MICROPY_PY_OS_URANDOM (1) +#define MICROPY_PY_RANDOM_SEED_INIT_FUNC (se_services_rand64()) #define MICROPY_PY_TIME (1) #define MICROPY_PY_MACHINE (1) #define MICROPY_PY_MACHINE_INCLUDEFILE "ports/alif/modmachine.c" @@ -155,3 +156,6 @@ extern void panic(const char *); #ifndef MICROPY_BOARD_ENTER_BOOTLOADER #define MICROPY_BOARD_ENTER_BOOTLOADER(nargs, args) #endif + +// Needed for MICROPY_PY_RANDOM_SEED_INIT_FUNC. +uint64_t se_services_rand64(void); |
