mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
esp8266: Implement os.urandom function.
Uses what is suspected to be a hardware random number generator.
This commit is contained in:
committed by
Paul Sokolovsky
parent
b4070ee8a4
commit
6ca17c1922
@@ -3,6 +3,9 @@
|
||||
|
||||
#include <os_type.h>
|
||||
|
||||
// see http://esp8266-re.foogod.com/wiki/Random_Number_Generator
|
||||
#define WDEV_HWRNG ((volatile uint32_t*)0x3ff20e44)
|
||||
|
||||
void ets_delay_us();
|
||||
void ets_intr_lock(void);
|
||||
void ets_intr_unlock(void);
|
||||
|
||||
Reference in New Issue
Block a user