|
Contiki-Inga 3.x
|
Random number generator routines exploiting the cc2530 hardware
capabilities.
More...
Go to the source code of this file.
Functions | |
| unsigned short | random_rand (void) |
| Generates a new random number using the cc253x RNG. More... | |
| void | random_init (unsigned short seed) |
| Seed the cc253x random number generator. More... | |
Random number generator routines exploiting the cc2530 hardware
capabilities. This file overrides core/lib/random.c.
Definition in file random.c.
| void random_init | ( | unsigned short | seed | ) |
Seed the cc253x 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. |
1.8.3.1