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

Leandro Lanzieri notifications at github.com
Wed Jan 27 10:05:51 CET 2021


@leandrolanzieri commented on this pull request.



> @@ -13,3 +13,8 @@ ifneq (1,$(words $(filter-out prng_shaxprng,$(USED_PRNG_IMPLEMENTATIONS))))
   $(info Currently the following prng modules are used: $(USED_PRNG_IMPLEMENTATIONS))
   $(error Only one implementation of PRNG should be used.)
 endif
+
+# Check that one and only one seed source has been selected
+ifneq (1,$(words $(filter-out random_seed_%,$(USEMODULE))))
+  $(error One seed should be selected for the random subsystem. Check the documentation for options.)

Now the modules registered in `PSEUDOMODULES` are printed with the error message.

-- 
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#discussion_r565136500
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210127/d4372dc0/attachment-0001.htm>


More information about the notifications mailing list