From 21b5e898c3e076792488974929018d9ef44f0533 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 13 Apr 2018 09:07:29 +0200 Subject: [PATCH] Enable the urandom module in mpconfigport.h, not in uPy Otherwise it breaks when upgrading uPy. Faulty commit 4011290. --- python/port/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index 4920502ae..9976b2b85 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -55,6 +55,8 @@ #define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE) +#define MICROPY_PY_URANDOM (1) +#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) #define MICROPY_VM_HOOK_LOOP micropython_port_should_interrupt();