diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-01-17 12:10:28 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-01-17 12:13:01 +0200 |
commit | a58a91eb04c50daafb31228a79f6752374338c5e (patch) | |
tree | 67c1aaf41dc3e52f650b2a9168a1e80c0f0e77f3 /py/builtin.h | |
parent | e7bee6b35ea4c9e622209902456be64559b94d17 (diff) |
extmod/modurandom: Add "urandom" module.
Seedable and reproducible pseudo-random number generator. Implemented
functions are getrandbits(n) (n <= 32) and seed().
The algorithm used is Yasmarang by Ilya Levin:
http://www.literatecode.com/yasmarang
Diffstat (limited to 'py/builtin.h')
-rw-r--r-- | py/builtin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/builtin.h b/py/builtin.h index 261e5a231..162835cd4 100644 --- a/py/builtin.h +++ b/py/builtin.h @@ -101,6 +101,7 @@ extern const mp_obj_module_t mp_module_ure; extern const mp_obj_module_t mp_module_uheapq; extern const mp_obj_module_t mp_module_uhashlib; extern const mp_obj_module_t mp_module_ubinascii; +extern const mp_obj_module_t mp_module_urandom; extern const mp_obj_module_t mp_module_ussl; extern const mp_obj_module_t mp_module_machine; extern const mp_obj_module_t mp_module_lwip; |