-
Notifications
You must be signed in to change notification settings - Fork 447
Open
Description
The libcoap library automatically always calls coap_prng_init() during initialization, which has two problematic behaviors:
- It always uses the coap ticks as the PRNG seed. Coap ticks is uptime, which is on most cases the same value.
- It calls system-wide PRNG seeding functions (
srandom()/srand()), affecting the entire application's random number generation, not just libcoap
Would it be ok to make coap_prng_init() call optional therefore configurable?
What would you think about passing seed as parameter during coap startup?
Metadata
Metadata
Assignees
Labels
No labels