|
Contiki-NG
|
Driver for the cc2538 Hardware Random Number Generator. More...
Files | |
| file | random.c |
| Random number generator routines exploiting the cc2538 hardware capabilities. | |
Functions | |
| unsigned short | random_rand (void) |
| Generates a new random number using the cc2538 RNG. More... | |
| void | random_init (unsigned short seed) |
| Seed the cc2538 random number generator. More... | |
Driver for the cc2538 Hardware Random Number Generator.
| void random_init | ( | unsigned short | seed | ) |
Seed the cc2538 random number generator.
| seed | Ignored. It's here because the function prototype is in core. We form a seed for the RNG by sampling IF_ADC as
discussed in the user guide.
Seeding with this method should not be done during
normal radio operation. Thus, use this function before
initialising the network.
|
Definition at line 84 of file random.c.
Referenced by platform_init_stage_two().
1.8.13