kopia lustrzana https://github.com/micropython/micropython
nrf/mpconfigport: Enable seeding of the PRNG by the hardware RNG.
A suitable function already existed, so just the declaration was needed.pull/10558/head
rodzic
be420bf9bb
commit
0baf6c80d9
|
@ -277,6 +277,11 @@ typedef int mp_int_t; // must be pointer size
|
||||||
typedef unsigned int mp_uint_t; // must be pointer size
|
typedef unsigned int mp_uint_t; // must be pointer size
|
||||||
typedef long mp_off_t;
|
typedef long mp_off_t;
|
||||||
|
|
||||||
|
#if MICROPY_HW_ENABLE_RNG
|
||||||
|
#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (rng_generate_random_word())
|
||||||
|
long unsigned int rng_generate_random_word(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BOARD_SPECIFIC_MODULES
|
#if BOARD_SPECIFIC_MODULES
|
||||||
#include "boardmodules.h"
|
#include "boardmodules.h"
|
||||||
#endif // BOARD_SPECIFIC_MODULES
|
#endif // BOARD_SPECIFIC_MODULES
|
||||||
|
|
Ładowanie…
Reference in New Issue