diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-04-20 16:06:22 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-05-18 20:49:12 +1000 |
| commit | 4eab44a1ec19f71e01b2c4f0747b95da0d34da77 (patch) | |
| tree | 3325196eebee1de9adb5f8eef08c7c0377640572 /extmod/modurandom.c | |
| parent | 469450171f8d467d467a178f67cda53d962d17d0 (diff) | |
extmod: Make extmod modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modurandom.c')
| -rw-r--r-- | extmod/modurandom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modurandom.c b/extmod/modurandom.c index 21fbac694..6e5f99de7 100644 --- a/extmod/modurandom.c +++ b/extmod/modurandom.c @@ -254,6 +254,8 @@ const mp_obj_module_t mp_module_urandom = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t *)&mp_module_urandom_globals, }; + +MP_REGISTER_MODULE(MP_QSTR_urandom, mp_module_urandom, MICROPY_PY_URANDOM); #endif #endif // MICROPY_PY_URANDOM |
