From a58a91eb04c50daafb31228a79f6752374338c5e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 17 Jan 2016 12:10:28 +0200 Subject: 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 --- unix/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unix') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 0eaa84d15..2f992fdf0 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -104,6 +104,7 @@ #define MICROPY_PY_UHEAPQ (1) #define MICROPY_PY_UHASHLIB (1) #define MICROPY_PY_UBINASCII (1) +#define MICROPY_PY_URANDOM (1) #ifndef MICROPY_PY_USELECT #define MICROPY_PY_USELECT (1) #endif -- cgit v1.2.3