31#include "dev/moteid.h"
32#include "lib/simEnvChange.h"
33#include "lib/random.h"
45doInterfaceActionsBeforeTick(
void)
47 if (simMoteIDChanged) {
54 (
const uint8_t *)&simRandomSeed,
sizeof(simRandomSeed),
61COOJA_PRE_TICK_ACTION(COOJA_MOTEID_INIT_PRIO, doInterfaceActionsBeforeTick);
An OFB-AES-128-based CSPRNG.
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
void csprng_feed(struct csprng_seed *new_seed)
Mixes a new seed with the current one.
Platform-independent SHA-256 API.
This is the structure of a seed.
uint8_t u8[(AES_128_KEY_LENGTH+AES_128_BLOCK_SIZE)]
for convenience