[riot-notifications] [RIOT-OS/RIOT] sys/random: allow seed source selection (#15836)

Leandro Lanzieri notifications at github.com
Fri Jan 22 09:54:46 CET 2021


### Contribution description
Currently the random subsystem is seeded by `auto_init_random`, which is called by auto init. It can be seeded using different sources, but the user has no explicit control over that, it just gets resolved depending on hardware availability and used modules. Moreover, the behaviour is not actually documented.

This PR introduces some pseudomodules to allow the explicit configuration of the seed source for random. It also has a default selection, which follows the current order.

**Note**: this depends on the fix provided in #15835

### Testing procedure
- Read the documentation on the header file
- Try selecting different seed sources

### Issues/PRs references
Depends on #15835
Related to #12166
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15836

-- Commit Summary --

  * makefile.include: avoid recursive expansion of USEMODULE
  * sys/random: allow seed source selection

-- File Changes --

    M Makefile.dep (21)
    M Makefile.include (3)
    M makefiles/pseudomodules.inc.mk (6)
    M sys/Makefile.dep (14)
    M sys/include/random.h (37)
    M sys/random/Makefile.include (5)
    M sys/random/random.c (16)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15836.patch
https://github.com/RIOT-OS/RIOT/pull/15836.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15836
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210122/63ebe494/attachment.htm>


More information about the notifications mailing list